- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusOptimisticException
-
- All Implemented Interfaces:
Serializable
public class NucleusOptimisticException extends NucleusException
Exception thrown when a transaction fails due to optimistic verification checks.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NucleusOptimisticException()
Constructs a new exception without a detail message.NucleusOptimisticException(String msg)
Constructs a new exception with the specified detail message.NucleusOptimisticException(String msg, Object failed)
Constructs a new exception with the specified detail message and failed object.NucleusOptimisticException(String msg, Throwable[] nested)
Constructs a new exception with the specified detail message and nestedThrowable
s.
-
Method Summary
-
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal, setNestedException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NucleusOptimisticException
public NucleusOptimisticException()
Constructs a new exception without a detail message.
-
NucleusOptimisticException
public NucleusOptimisticException(String msg)
Constructs a new exception with the specified detail message.- Parameters:
msg
- the detail message.
-
NucleusOptimisticException
public NucleusOptimisticException(String msg, Throwable[] nested)
Constructs a new exception with the specified detail message and nestedThrowable
s.- Parameters:
msg
- the detail message.nested
- the nestedThrowable[]
.
-
-