Class OpenJPAException

    • Constructor Detail

      • OpenJPAException

        public OpenJPAException()
        Default constructor.
      • OpenJPAException

        public OpenJPAException​(java.lang.String msg)
        Constructor; supply message.
      • OpenJPAException

        public OpenJPAException​(Localizer.Message msg)
        Constructor; supply message.
      • OpenJPAException

        public OpenJPAException​(java.lang.Throwable cause)
        Construct with cause.
      • OpenJPAException

        public OpenJPAException​(java.lang.String msg,
                                java.lang.Throwable cause)
        Construct with message and cause.
      • OpenJPAException

        public OpenJPAException​(Localizer.Message msg,
                                java.lang.Throwable cause)
        Construct with message and cause.
    • Method Detail

      • getType

        public abstract int getType()
        Exception type.
        Specified by:
        getType in interface ExceptionInfo
      • isFatal

        public boolean isFatal()
        Whether this error is fatal.
        Specified by:
        isFatal in interface ExceptionInfo
      • setFatal

        public OpenJPAException setFatal​(boolean fatal)
        Whether this error is fatal.
      • getCause

        public java.lang.Throwable getCause()
        Returns the first Throwable from getNestedThrowables() in order to conform to Throwable.getCause() in Java 1.4+.
        Specified by:
        getCause in interface ExceptionInfo
        Overrides:
        getCause in class java.lang.Throwable
        See Also:
        Throwable.getCause()
      • setCause

        public OpenJPAException setCause​(java.lang.Throwable nested)
        The first nested throwable.
      • getNestedThrowables

        public java.lang.Throwable[] getNestedThrowables()
        The nested throwables.
        Specified by:
        getNestedThrowables in interface ExceptionInfo
      • setNestedThrowables

        public OpenJPAException setNestedThrowables​(java.lang.Throwable[] nested)
        The nested throwables.
      • setFailedObject

        public OpenJPAException setFailedObject​(java.lang.Object failed)
        The failed object.
      • toString

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

        public void printStackTrace()
        Description copied from interface: ExceptionInfo
        Stack.
        Specified by:
        printStackTrace in interface ExceptionInfo
        Overrides:
        printStackTrace in class java.lang.Throwable
        See Also:
        Throwable.printStackTrace()
      • printStackTrace

        public void printStackTrace​(java.io.PrintStream out)
        Overrides:
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace​(java.io.PrintWriter out)
        Overrides:
        printStackTrace in class java.lang.Throwable