MicroModelicaCCompiler  4.5.3
error.hpp File Reference
#include <map>
#include <string>
Include dependency graph for error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MicroModelica::Util::Error
 

Namespaces

 MicroModelica
 
 MicroModelica::Util
 

Macros

#define EM_MODULE   0xffff0000
 
#define EM_MESSAGE   0x0000ffff
 
#define EM_AST   0x00010000
 
#define EM_IR   0x00020000
 
#define EM_CG   0x00030000
 
#define EM_PP   0x00040000
 
#define EM_ERROR   0x00050000
 
#define EM_GRM   0x00060000
 
#define EM_VARIABLE_NOT_FOUND   0x00000001
 
#define EM_CANT_OPEN_FILE   0x00000002
 
#define EM_PARSE_FILE   0x00000003
 
#define EM_WRONG_SCANNER   0x00000004
 
#define EM_VARIABLE_NOT_DEFINED   0x00000005
 
#define EM_WRONG_TYPE   0x00000006
 
#define EM_WRONG_EXP   0x00000007
 
#define EM_UNKNOWN_OPER   0x00000008
 
#define EM_UNKNOWN_OPERATION   0x00000009
 
#define EM_UNKNOWN_EXP   0x0000000a
 
#define EM_UNKNOWN_TYPE   0x0000000b
 
#define EM_ARRAY_INIT   0x0000000c
 
#define EM_ARRAY_INIT_VAL   0x0000000d
 
#define EM_ARRAY_CTE   0x0000000e
 
#define EM_ARRAY_SIZE   0x0000000f
 
#define EM_ALG_INIT   0x00000010
 
#define EM_ALG_INDEX   0x00000020
 
#define EM_OUTPUT_INIT   0x00000030
 
#define EM_FOR_VAR   0x00000040
 
#define EM_FOR_DEF   0x00000050
 
#define EM_CALL_EXP   0x00000060
 
#define EM_RANGE_EXP   0x00000070
 
#define EM_INDEX_RANGE   0x00000080
 
#define EM_SIZE_ZERO   0x00000090
 
#define EM_GEN_DEF   0x000000a0
 
#define EM_EVENT_DEF   0x000000b0
 
#define EM_SYMBOL   0x000000c0
 
#define EM_SYM_DER   0x000000d0
 
#define EM_EQ_DEF   0x000000e0
 
#define EM_NO_EQ   0x000000f0
 
#define EM_UNKNOWN_ODE   0x00000100
 
#define EM_EVENT_FOUND   0x00000200
 
#define EM_UNKNOWN_ERROR   0x00000300
 
#define EM_SAMPLED_DEF   0x00000400
 
#define EM_OUTPUT_DEF   0x00000500
 
#define EM_ARGUMENTS   0x00000600
 
#define EM_SAMPLED_OUT   0x00000700
 
#define EM_HANDLER   0x00000800
 
#define EM_CONSTANT_FOR   0x00000900
 
#define EM_DEFINITION_NOT_ALLOWED   0x00000a00
 
#define EM_CLASS_DEFINITION   0x00000b00
 
#define EM_INIT_EXP   0x00000c00
 
#define EM_IMPLICIT_CAST   0x00000d00
 
#define EM_WRONG_VARIABLE_TYPE   0x00000e00
 
#define EM_INDEX_EXP   0x00000f00
 
#define EM_FUNCTION_NOT_FOUND   0x00001000
 
#define EM_ANNOTATION_NOT_FOUND   0x00002000
 
#define EM_ANNOTATION_TYPE   0x00003000
 

Enumerations

enum  MicroModelica::Util::ER_Type { MicroModelica::Util::ER_Warning, MicroModelica::Util::ER_Error, MicroModelica::Util::ER_Fatal }
 

Macro Definition Documentation

◆ EM_ALG_INDEX

#define EM_ALG_INDEX   0x00000020

Definition at line 87 of file error.hpp.

◆ EM_ALG_INIT

#define EM_ALG_INIT   0x00000010

Definition at line 86 of file error.hpp.

◆ EM_ANNOTATION_NOT_FOUND

#define EM_ANNOTATION_NOT_FOUND   0x00002000

Definition at line 117 of file error.hpp.

◆ EM_ANNOTATION_TYPE

#define EM_ANNOTATION_TYPE   0x00003000

Definition at line 118 of file error.hpp.

◆ EM_ARGUMENTS

#define EM_ARGUMENTS   0x00000600

Definition at line 106 of file error.hpp.

◆ EM_ARRAY_CTE

#define EM_ARRAY_CTE   0x0000000e

Definition at line 84 of file error.hpp.

◆ EM_ARRAY_INIT

#define EM_ARRAY_INIT   0x0000000c

Definition at line 82 of file error.hpp.

◆ EM_ARRAY_INIT_VAL

#define EM_ARRAY_INIT_VAL   0x0000000d

Definition at line 83 of file error.hpp.

◆ EM_ARRAY_SIZE

#define EM_ARRAY_SIZE   0x0000000f

Definition at line 85 of file error.hpp.

◆ EM_AST

#define EM_AST   0x00010000

Definition at line 65 of file error.hpp.

◆ EM_CALL_EXP

#define EM_CALL_EXP   0x00000060

Definition at line 91 of file error.hpp.

◆ EM_CANT_OPEN_FILE

#define EM_CANT_OPEN_FILE   0x00000002

Definition at line 72 of file error.hpp.

◆ EM_CG

#define EM_CG   0x00030000

Definition at line 67 of file error.hpp.

◆ EM_CLASS_DEFINITION

#define EM_CLASS_DEFINITION   0x00000b00

Definition at line 111 of file error.hpp.

◆ EM_CONSTANT_FOR

#define EM_CONSTANT_FOR   0x00000900

Definition at line 109 of file error.hpp.

◆ EM_DEFINITION_NOT_ALLOWED

#define EM_DEFINITION_NOT_ALLOWED   0x00000a00

Definition at line 110 of file error.hpp.

◆ EM_EQ_DEF

#define EM_EQ_DEF   0x000000e0

Definition at line 99 of file error.hpp.

◆ EM_ERROR

#define EM_ERROR   0x00050000

Definition at line 69 of file error.hpp.

◆ EM_EVENT_DEF

#define EM_EVENT_DEF   0x000000b0

Definition at line 96 of file error.hpp.

◆ EM_EVENT_FOUND

#define EM_EVENT_FOUND   0x00000200

Definition at line 102 of file error.hpp.

◆ EM_FOR_DEF

#define EM_FOR_DEF   0x00000050

Definition at line 90 of file error.hpp.

◆ EM_FOR_VAR

#define EM_FOR_VAR   0x00000040

Definition at line 89 of file error.hpp.

◆ EM_FUNCTION_NOT_FOUND

#define EM_FUNCTION_NOT_FOUND   0x00001000

Definition at line 116 of file error.hpp.

◆ EM_GEN_DEF

#define EM_GEN_DEF   0x000000a0

Definition at line 95 of file error.hpp.

◆ EM_GRM

#define EM_GRM   0x00060000

Definition at line 70 of file error.hpp.

◆ EM_HANDLER

#define EM_HANDLER   0x00000800

Definition at line 108 of file error.hpp.

◆ EM_IMPLICIT_CAST

#define EM_IMPLICIT_CAST   0x00000d00

Definition at line 113 of file error.hpp.

◆ EM_INDEX_EXP

#define EM_INDEX_EXP   0x00000f00

Definition at line 115 of file error.hpp.

◆ EM_INDEX_RANGE

#define EM_INDEX_RANGE   0x00000080

Definition at line 93 of file error.hpp.

◆ EM_INIT_EXP

#define EM_INIT_EXP   0x00000c00

Definition at line 112 of file error.hpp.

◆ EM_IR

#define EM_IR   0x00020000

Definition at line 66 of file error.hpp.

◆ EM_MESSAGE

#define EM_MESSAGE   0x0000ffff

Definition at line 64 of file error.hpp.

◆ EM_MODULE

#define EM_MODULE   0xffff0000

Definition at line 63 of file error.hpp.

◆ EM_NO_EQ

#define EM_NO_EQ   0x000000f0

Definition at line 100 of file error.hpp.

◆ EM_OUTPUT_DEF

#define EM_OUTPUT_DEF   0x00000500

Definition at line 105 of file error.hpp.

◆ EM_OUTPUT_INIT

#define EM_OUTPUT_INIT   0x00000030

Definition at line 88 of file error.hpp.

◆ EM_PARSE_FILE

#define EM_PARSE_FILE   0x00000003

Definition at line 73 of file error.hpp.

◆ EM_PP

#define EM_PP   0x00040000

Definition at line 68 of file error.hpp.

◆ EM_RANGE_EXP

#define EM_RANGE_EXP   0x00000070

Definition at line 92 of file error.hpp.

◆ EM_SAMPLED_DEF

#define EM_SAMPLED_DEF   0x00000400

Definition at line 104 of file error.hpp.

◆ EM_SAMPLED_OUT

#define EM_SAMPLED_OUT   0x00000700

Definition at line 107 of file error.hpp.

◆ EM_SIZE_ZERO

#define EM_SIZE_ZERO   0x00000090

Definition at line 94 of file error.hpp.

◆ EM_SYM_DER

#define EM_SYM_DER   0x000000d0

Definition at line 98 of file error.hpp.

◆ EM_SYMBOL

#define EM_SYMBOL   0x000000c0

Definition at line 97 of file error.hpp.

◆ EM_UNKNOWN_ERROR

#define EM_UNKNOWN_ERROR   0x00000300

Definition at line 103 of file error.hpp.

◆ EM_UNKNOWN_EXP

#define EM_UNKNOWN_EXP   0x0000000a

Definition at line 80 of file error.hpp.

◆ EM_UNKNOWN_ODE

#define EM_UNKNOWN_ODE   0x00000100

Definition at line 101 of file error.hpp.

◆ EM_UNKNOWN_OPER

#define EM_UNKNOWN_OPER   0x00000008

Definition at line 78 of file error.hpp.

◆ EM_UNKNOWN_OPERATION

#define EM_UNKNOWN_OPERATION   0x00000009

Definition at line 79 of file error.hpp.

◆ EM_UNKNOWN_TYPE

#define EM_UNKNOWN_TYPE   0x0000000b

Definition at line 81 of file error.hpp.

◆ EM_VARIABLE_NOT_DEFINED

#define EM_VARIABLE_NOT_DEFINED   0x00000005

Definition at line 75 of file error.hpp.

◆ EM_VARIABLE_NOT_FOUND

#define EM_VARIABLE_NOT_FOUND   0x00000001

Definition at line 71 of file error.hpp.

◆ EM_WRONG_EXP

#define EM_WRONG_EXP   0x00000007

Definition at line 77 of file error.hpp.

◆ EM_WRONG_SCANNER

#define EM_WRONG_SCANNER   0x00000004

Definition at line 74 of file error.hpp.

◆ EM_WRONG_TYPE

#define EM_WRONG_TYPE   0x00000006

Definition at line 76 of file error.hpp.

◆ EM_WRONG_VARIABLE_TYPE

#define EM_WRONG_VARIABLE_TYPE   0x00000e00

Definition at line 114 of file error.hpp.