Initializing help system before first use

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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Get the exception message.
        Overrides:
        getMessage in class  java.lang.Throwable
        Returns:
        Descriptive text of the compilation error
      • getErrorCode

        public int getErrorCode()
        Get the compilation error code.
        Returns:
        Error code