CXM_errors.anubis
846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Created by PyramIDE.
* User: ricard
* Date: 16/09/2007
* Time: 21:10
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
public type GeneralError:
ok,
unknown(Int32 val),
bad_type,
bad_value,
bad_parameters,
no_init,
unknown_command,
wrong_authentification, // Wrong login or password
access_denied. // login ok but no suffisiant right to access to this area. Can be use with wrong authentification too...
public define Int32
to_Int32
(
GeneralError e
) =
if e is
{
ok then 0,
unknown(val) then val,
bad_type then 0x1,
bad_value then 0x2,
bad_parameters then 0x3,
no_init then 0x4,
unknown_command then 0x5,
wrong_authentification then 0x6,
access_denied then 0x7,
}.