Package org.apache.openjpa.util
Class UserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.openjpa.util.OpenJPAException
-
- org.apache.openjpa.util.UserException
-
- All Implemented Interfaces:
java.io.Serializable
,ExceptionInfo
- Direct Known Subclasses:
CallbackException
,InvalidStateException
,MetaDataException
,ParseException
public class UserException extends OpenJPAException
Base exception type for user errors.- Since:
- 0.2.5
- Author:
- Marc Prud'hommeaux
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CALLBACK
static int
INVALID_STATE
static int
METADATA
static int
NO_RESULT
static int
NO_TRANSACTION
static int
NON_UNIQUE_RESULT
-
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
-
-
Constructor Summary
Constructors Constructor Description UserException()
UserException(java.lang.String msg)
UserException(java.lang.String msg, java.lang.Throwable cause)
UserException(java.lang.Throwable cause)
UserException(Localizer.Message msg)
UserException(Localizer.Message msg, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Exception type.-
Methods inherited from class org.apache.openjpa.util.OpenJPAException
getCause, getFailedObject, getNestedThrowables, getSubtype, isFatal, printStackTrace, printStackTrace, printStackTrace, setCause, setFailedObject, setFatal, setNestedThrowables, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.util.ExceptionInfo
getMessage
-
-
-
-
Field Detail
-
METADATA
public static final int METADATA
- See Also:
- Constant Field Values
-
INVALID_STATE
public static final int INVALID_STATE
- See Also:
- Constant Field Values
-
NO_TRANSACTION
public static final int NO_TRANSACTION
- See Also:
- Constant Field Values
-
CALLBACK
public static final int CALLBACK
- See Also:
- Constant Field Values
-
NO_RESULT
public static final int NO_RESULT
- See Also:
- Constant Field Values
-
NON_UNIQUE_RESULT
public static final int NON_UNIQUE_RESULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserException
public UserException()
-
UserException
public UserException(java.lang.String msg)
-
UserException
public UserException(Localizer.Message msg)
-
UserException
public UserException(java.lang.Throwable cause)
-
UserException
public UserException(java.lang.String msg, java.lang.Throwable cause)
-
UserException
public UserException(Localizer.Message msg, java.lang.Throwable cause)
-
-
Method Detail
-
getType
public int getType()
Description copied from class:OpenJPAException
Exception type.- Specified by:
getType
in interfaceExceptionInfo
- Specified by:
getType
in classOpenJPAException
-
-