Class BindingException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class BindingException
    extends java.lang.Exception
    The base exception for the binding package. This exception is nested in order to keep a correct stack trace while nesting the exception that causes the call to BindingException.
    Version:
    $Version:$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
    Author:
    Arnaud Blandin
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BindingException​(java.lang.Exception exception)
      Creates a new BindingException wrapping an existing Exception.
      BindingException​(java.lang.String message)
      Creates a new BindingException.
      BindingException​(java.lang.String message, java.lang.Exception exception)
      Creates a new BindingException from an existing exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getException()
      Returns the embedded Exception, if any.
      java.lang.String getMessage()
      Returns a detailed message for this Exception.
      void printStackTrace()
      Overrides printStackTrace to keep the stack trace of the embedded Exception.
      java.lang.String toString()
      Overrides toString to pick up any embedded Exception.
      • Methods inherited from class java.lang.Throwable

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

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

      • BindingException

        public BindingException​(java.lang.String message)
        Creates a new BindingException.
        Parameters:
        message - The error or warning message.
      • BindingException

        public BindingException​(java.lang.Exception exception)
        Creates a new BindingException wrapping an existing Exception.

        The existing Exception will be embedded in the new one, and its message will become the default message for the BindingException.

        Parameters:
        exception - The Exception to be wrapped in a BindingException.
      • BindingException

        public BindingException​(java.lang.String message,
                                java.lang.Exception exception)
        Creates a new BindingException from an existing exception.

        The existing Exception will be embedded in the new one, but the new Exception will have its own message.

        Parameters:
        message - The detail message.
        exception - The Exception to be wrapped in a BindingException.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns a detailed message for this Exception.

        If there is an embedded Exception, and if the BindingException has no detail message of its own, this method will return the detail message from the embedded Exception.

        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        String The error or warning message.
      • getException

        public java.lang.Exception getException()
        Returns the embedded Exception, if any.
        Returns:
        Exception The embedded Exception, or null if there is none.
      • printStackTrace

        public void printStackTrace()
        Overrides printStackTrace to keep the stack trace of the embedded Exception.
        Overrides:
        printStackTrace in class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Overrides toString to pick up any embedded Exception.
        Overrides:
        toString in class java.lang.Throwable
        Returns:
        String A string representation of this Exception.