Class MorphException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MorphException
    extends java.lang.RuntimeException
    A MorphException indicates that a call to Morpher.morph() has failed to complete successfully.
    Based on common-beauntils ConversionException.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Throwable cause
      The root cause of this ConversionException, compatible with JDK 1.4's extensions to java.lang.Throwable.
    • Constructor Summary

      Constructors 
      Constructor Description
      MorphException​(java.lang.String message)
      Construct a new exception with the specified message.
      MorphException​(java.lang.String message, java.lang.Throwable cause)
      Construct a new exception with the specified message and root cause.
      MorphException​(java.lang.Throwable cause)
      Construct a new exception with the specified root cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Returns the cause of this exception.
      • Methods inherited from class java.lang.Throwable

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

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

      • cause

        protected java.lang.Throwable cause
        The root cause of this ConversionException, compatible with JDK 1.4's extensions to java.lang.Throwable.
    • Constructor Detail

      • MorphException

        public MorphException​(java.lang.String message)
        Construct a new exception with the specified message.
        Parameters:
        message - The message describing this exception
      • MorphException

        public MorphException​(java.lang.String message,
                              java.lang.Throwable cause)
        Construct a new exception with the specified message and root cause.
        Parameters:
        message - The message describing this exception
        cause - The root cause of this exception
      • MorphException

        public MorphException​(java.lang.Throwable cause)
        Construct a new exception with the specified root cause.
        Parameters:
        cause - The root cause of this exception
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Returns the cause of this exception.
        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        a Throwable that represents the cause of this exception