Package org.apache.metamodel.jdbc
Class RolledBackUpdateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.metamodel.MetaModelException
-
- org.apache.metamodel.jdbc.RolledBackUpdateException
-
- All Implemented Interfaces:
Serializable
public class RolledBackUpdateException extends org.apache.metamodel.MetaModelExceptionRepresents an exception duringJdbcDataContext.executeUpdate(org.apache.metamodel.UpdateScript)which was rolled back at the JDBC layer. This particular exception type can typically be catched and the update can be retried to retry the transaction (assuming that the script is designed in a way that makes it idempotent and has not side-effects on state outside of theJdbcDataContext). Note that the cause of this will always be aSQLExceptionsince it only applies to JDBC.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RolledBackUpdateException(String message, SQLException cause)RolledBackUpdateException(SQLException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLExceptiongetCause()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RolledBackUpdateException
public RolledBackUpdateException(SQLException cause)
-
RolledBackUpdateException
public RolledBackUpdateException(String message, SQLException cause)
-
-
Method Detail
-
getCause
public SQLException getCause()
-
-