Class ModelException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ModelException
    extends java.lang.RuntimeException
    Exception thrown when there is an object instantiation error or error processing the model.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelException​(java.lang.String message)
      Default constructor.
      ModelException​(java.lang.String message, java.lang.Class<? extends IObject> klass, java.lang.Exception exception)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends IObject> getFailureClass()
      Returns the class that was used during a failed instantiation.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ModelException

        public ModelException​(java.lang.String message)
        Default constructor.
        Parameters:
        message - Error message.
      • ModelException

        public ModelException​(java.lang.String message,
                              java.lang.Class<? extends IObject> klass,
                              java.lang.Exception exception)
        Default constructor.
        Parameters:
        message - Error message.
        klass - Failed instantiation class.
        exception - Upstream exception.
    • Method Detail

      • getFailureClass

        public java.lang.Class<? extends IObject> getFailureClass()
        Returns the class that was used during a failed instantiation.
        Returns:
        See above.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable