XPRMCompileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.dashoptimization.XPRMCompileException
-
- All Implemented Interfaces:
- java.io.Serializable
public class XPRMCompileException extends java.lang.Exception
A compilation failure. This exception is thrown when the compilation of a model does not succeed.- See Also:
- Serialized Form
-
-
Field Summary
Modifier and Type Field and Description static int
COMPILATION_FAILED
Error occurred during the compilation.static int
PARSING_FAILED
Error detected during parsing.static int
WRITING_BIM_FAILED
Error occurred during writing to the BIM file.
-
Method Summary
Modifier and Type Method and Description int
getErrorCode()
Get the compilation error code.java.lang.String
getMessage()
Get the exception message.
-
-
-
Field Detail
-
PARSING_FAILED
public static final int PARSING_FAILED
Error detected during parsing. This code is returned when the compiler could not complete the analysis of the source file (e.g. file not found, synctax error...)- See Also:
-
getErrorCode()
, Constant Field Values
-
COMPILATION_FAILED
public static final int COMPILATION_FAILED
Error occurred during the compilation. The program does not contain any syntactic mistake but the compilation was not possible. For instance, the program requires a function that is declared but not defined.- See Also:
-
getErrorCode()
, Constant Field Values
-
WRITING_BIM_FAILED
public static final int WRITING_BIM_FAILED
Error occurred during writing to the BIM file. This is typically an IO error.- See Also:
-
getErrorCode()
, Constant Field Values
-
-