/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: 2024-12-21 22:46:57 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20241221224657-a16tzudfhsmdctmm
[README]
* Fixed logic error.

Show diffs side-by-side

added added

removed removed

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