/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/utils/exceptions.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-06-01 12:14:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220601121452-ntu94w67q3dhhfeq
More work torwards inperementing the parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[CCode (cname = "V", cprefix = "v_")]
1
2
namespace Utils {
 
3
  [CCode (cname = "VArgError", cprefix = "V_ARG_ERROR_")]
2
4
  public errordomain ArgError {
3
5
    INVALID_ARGUMENT,
4
 
    INDEX_OUT_OF_BOUNDS,
 
6
    INDEX_OUT_OF_BOUNDS;
5
7
  }
6
 
  
 
8
  [CCode (cname = "VMathError", cprefix = "V_MATH_ERROR_")]
7
9
  public errordomain MathError {
8
 
    DIVIDE_BY_ZERO
9
 
  }
10
 
  
 
10
    DIVIDE_BY_ZERO;
 
11
  }
 
12
  [CCode (cname = "VOperandError", cprefix = "V_OPERAND_ERROR_")]
 
13
  public errordomain OperandError {
 
14
    MISSING_OPERAND;
 
15
  }
 
16
  [CCode (cname = "VParserError", cprefix = "V_PARSER_ERROR_")]
11
17
  public errordomain ParseError {
12
18
    INVALID_CHARECTER,
 
19
    NOT_READY,
 
20
    ALLREADY_PARSED,
 
21
    INVALID_DATA;
13
22
  }
14
 
  
 
23
  [CCode (cname = "VEvaluationError", cprefix = "V_EVALIUATION_ERROR_")]
15
24
  public errordomain EvaluationError {
16
25
    MISSING_TOKEN,
17
 
    INVALID_TOKEN,
 
26
    INVALID_TOKEN;
18
27
  }
19
 
 
 
28
  [CCode (cname = "VParamError", cprefix = "V_PARAM_ERROR_")]
20
29
  public errordomain ParamError {
21
 
    OUT_OF_BOUNDS
 
30
    OUT_OF_BOUNDS;
22
31
  }
23
32
 
 
33
  [CCode (cname = "VLoopError", cprefix = "V_LOOP_ERROR_")]
24
34
  public errordomain  LoopError {
25
35
    TO_LONG,
26
 
    INFINITE
 
36
    INFINITE;
27
37
  }
28
38
  
29
39
}