Package org.apache.openjpa.persistence
Class InvalidStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.apache.openjpa.persistence.InvalidStateException
- All Implemented Interfaces:
Serializable,ExceptionInfo
public class InvalidStateException
extends IllegalStateException
implements Serializable, ExceptionInfo
Extended
IllegalStateException.- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
-
Field Summary
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED -
Constructor Summary
ConstructorsConstructorDescriptionInvalidStateException(String msg, Throwable[] nested, Object failed, boolean fatal) InvalidStateException(Localizer.Message msg, Throwable[] nested, Object failed, boolean fatal) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.The failed object.The nested throwables.intException subtype.intgetType()Exception type.booleanisFatal()Whether this error is fatal.voidStack.voidvoidtoString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.openjpa.util.ExceptionInfo
getMessage
-
Constructor Details
-
InvalidStateException
public InvalidStateException(Localizer.Message msg, Throwable[] nested, Object failed, boolean fatal) -
InvalidStateException
-
-
Method Details
-
getType
public int getType()Description copied from interface:ExceptionInfoException type.- Specified by:
getTypein interfaceExceptionInfo
-
getSubtype
public int getSubtype()Description copied from interface:ExceptionInfoException subtype.- Specified by:
getSubtypein interfaceExceptionInfo
-
isFatal
public boolean isFatal()Description copied from interface:ExceptionInfoWhether this error is fatal.- Specified by:
isFatalin interfaceExceptionInfo
-
getCause
Description copied from interface:ExceptionInfoReturns the firstThrowablefromExceptionInfo.getNestedThrowables()in order to conform toThrowable.getCause()in Java 1.4+.- Specified by:
getCausein interfaceExceptionInfo- Overrides:
getCausein classThrowable- See Also:
-
getNestedThrowables
Description copied from interface:ExceptionInfoThe nested throwables.- Specified by:
getNestedThrowablesin interfaceExceptionInfo
-
getFailedObject
Description copied from interface:ExceptionInfoThe failed object.- Specified by:
getFailedObjectin interfaceExceptionInfo
-
toString
-
printStackTrace
public void printStackTrace()Description copied from interface:ExceptionInfoStack.- Specified by:
printStackTracein interfaceExceptionInfo- Overrides:
printStackTracein classThrowable- See Also:
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-