Package org.datanucleus.exceptions
Class NucleusUserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusUserException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ClassNotDetachableException
,ClassNotPersistableException
,ConnectionFactoryNotFoundException
,DatastoreInitialisationException
,DatastoreReadOnlyException
,IncompatibleFieldTypeException
,InvalidAnnotationException
,NoExtentException
,NoPersistenceInformationException
,NucleusFatalUserException
,NucleusUnsupportedOptionException
,ObjectDetachedException
,PropertyTypeInvalidException
,QueryCompilerSyntaxException
,QueryInvalidParametersException
,QueryNotUniqueException
,ReachableObjectNotCascadedException
,TransactionActiveOnBeginException
,TransactionActiveOnCloseException
,TransactionIsolationNotSupportedException
,TransactionNotActiveException
,UnsupportedConnectionFactoryException
public class NucleusUserException extends NucleusException
Exception thrown when a user error occurs.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.datanucleus.exceptions.NucleusException
failed, fatal, nested
-
-
Constructor Summary
Constructors Constructor Description NucleusUserException()
Constructs a new exception without a detail message.NucleusUserException(java.lang.String msg)
Constructs a new exception with the specified detail message.NucleusUserException(java.lang.String msg, java.lang.Object failed)
Constructs a new exception with the specified detail message and failed object.NucleusUserException(java.lang.String msg, java.lang.Throwable nested)
Constructs a new exception with the specified detail message and nestedThrowable
.NucleusUserException(java.lang.String msg, java.lang.Throwable[] nested)
Constructs a new exception with the specified detail message and nestedThrowable
s.NucleusUserException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed)
Constructs a new exception with the specified detail message, nestedThrowable
s, and failed object.NucleusUserException(java.lang.String msg, java.lang.Throwable nested, java.lang.Object failed)
Constructs a new exception with the specified detail message, nestedThrowable
, and failed object.
-
Method Summary
-
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NucleusUserException
public NucleusUserException()
Constructs a new exception without a detail message.
-
NucleusUserException
public NucleusUserException(java.lang.String msg)
Constructs a new exception with the specified detail message.- Parameters:
msg
- the detail message.
-
NucleusUserException
public NucleusUserException(java.lang.String msg, java.lang.Throwable[] nested)
Constructs a new exception with the specified detail message and nestedThrowable
s.- Parameters:
msg
- the detail message.nested
- the nestedThrowable[]
.
-
NucleusUserException
public NucleusUserException(java.lang.String msg, java.lang.Throwable nested)
Constructs a new exception with the specified detail message and nestedThrowable
.- Parameters:
msg
- the detail message.nested
- the nestedThrowable
.
-
NucleusUserException
public NucleusUserException(java.lang.String msg, java.lang.Object failed)
Constructs a new exception with the specified detail message and failed object.- Parameters:
msg
- the detail message.failed
- the failed object.
-
NucleusUserException
public NucleusUserException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed)
Constructs a new exception with the specified detail message, nestedThrowable
s, and failed object.- Parameters:
msg
- the detail message.nested
- the nestedThrowable[]
.failed
- the failed object.
-
NucleusUserException
public NucleusUserException(java.lang.String msg, java.lang.Throwable nested, java.lang.Object failed)
Constructs a new exception with the specified detail message, nestedThrowable
, and failed object.- Parameters:
msg
- the detail message.nested
- the nestedThrowable
.failed
- the failed object.
-
-