Package org.datanucleus.exceptions
Class NucleusOptimisticException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusOptimisticException
-
- All Implemented Interfaces:
java.io.Serializable
public class NucleusOptimisticException extends NucleusException
Exception thrown when a transaction fails due to optimistic verification checks.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class org.datanucleus.exceptions.NucleusException
failed, fatal, nested
-
-
Constructor Summary
Constructors Constructor Description NucleusOptimisticException()Constructs a new exception without a detail message.NucleusOptimisticException(java.lang.String msg)Constructs a new exception with the specified detail message.NucleusOptimisticException(java.lang.String msg, java.lang.Object failed)Constructs a new exception with the specified detail message and failed object.NucleusOptimisticException(java.lang.String msg, java.lang.Throwable[] nested)Constructs a new exception with the specified detail message and nestedThrowables.
-
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
-
NucleusOptimisticException
public NucleusOptimisticException()
Constructs a new exception without a detail message.
-
NucleusOptimisticException
public NucleusOptimisticException(java.lang.String msg)
Constructs a new exception with the specified detail message.- Parameters:
msg- the detail message.
-
NucleusOptimisticException
public NucleusOptimisticException(java.lang.String msg, java.lang.Throwable[] nested)Constructs a new exception with the specified detail message and nestedThrowables.- Parameters:
msg- the detail message.nested- the nestedThrowable[].
-
NucleusOptimisticException
public NucleusOptimisticException(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.
-
-