Class IvmlException

java.lang.Object
java.lang.Throwable
java.lang.Exception
net.ssehub.easy.varModel.model.IvmlException
All Implemented Interfaces:
Serializable, net.ssehub.easy.basics.messages.IIdentifiable
Direct Known Subclasses:
ConfigurationException, CSTSemanticException, ModelQueryException, ReasoningException, ValueDoesNotMatchTypeException

public abstract class IvmlException extends Exception implements net.ssehub.easy.basics.messages.IIdentifiable
A top level exception class for all IVML exceptions.
Author:
Holger Eichelberger
See Also:
  • Field Details

    • code

      private int code
  • Constructor Details

    • IvmlException

      public IvmlException(String message, int code)
      Create a new exception based on the given message.
      Parameters:
      message - the message
      code - a code detailing the exception
  • Method Details

    • getCode

      public int getCode()
      Returns a numerical code representing the cause.
      Returns:
      the numerical code
    • getId

      public int getId()
      Specified by:
      getId in interface net.ssehub.easy.basics.messages.IIdentifiable