summaryrefslogtreecommitdiff
path: root/include/errors.h
blob: e1a95d8729fe792abeecff56a8949219ab899dab (plain)
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
38
39
40
41
42
/**
 *  Errors.h
 *
 *  In this file an enumeration type is defined with all error flags.
 *
 *  @author Toon Schoenmakers <toon.schoenmakers@copernica.com>
 *  @copyright 2015 Copernica BV
 */

/**
 *  Set up namespace
 */
namespace Php {

/**
 *  Supported types of errors, this is mostly a copy from Zend/zend_errors.h
 */
enum class PHPCPP_EXPORT Error : int {
    Error                =   (1 << 0L),
    Warning              =   (1 << 1L),
    Parse                =   (1 << 2L),
    Notice               =   (1 << 3L),
    CoreError            =   (1 << 4L),
    CoreWarning          =   (1 << 5L),
    CompileError         =   (1 << 6L),
    CompileWarning       =   (1 << 7L),
    UserError            =   (1 << 8L),
    UserWarning          =   (1 << 9L),
    UserNotice           =   (1 << 10L),
    Strict               =   (1 << 11L),
    RecoverableError     =   (1 << 12L),
    Deprecated           =   (1 << 13L),
    UserDeprecated       =   (1 << 14L),

    Core                 =   (CoreError | CoreWarning),
    All                  =   (Error | Warning | Parse | Notice | CoreError | CoreWarning | CompileError | CompileWarning | UserError | UserWarning | UserNotice | RecoverableError | Deprecated | UserDeprecated )
};

/**
 *  End of namespace
 */
}