|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jenkov.mrpersister.scope.ScopeException
public class ScopeException
Exceptions of this type are thrown from either connection or transaction scopes, if an exception is thrown inside the scope. The exception thrown inside the scope is wrapped in a ScopeException and rethrown, once the scope object has closed the connection correctly and/or committed/rolled back the transaction.
Field Summary | |
---|---|
protected java.lang.Throwable |
closeException
|
protected java.lang.Throwable |
commitException
|
protected java.lang.Throwable |
rollbackException
|
protected java.lang.Throwable |
setAutoCommitFalseException
|
Constructor Summary | |
---|---|
ScopeException()
|
|
ScopeException(java.lang.String message)
|
|
ScopeException(java.lang.String message,
java.lang.Throwable cause)
|
|
ScopeException(java.lang.String message,
java.lang.Throwable cause,
java.lang.Throwable commitException,
java.lang.Throwable rollbackException,
java.lang.Throwable setAutoCommitFalseException,
java.lang.Throwable closeException)
|
|
ScopeException(java.lang.Throwable cause)
|
|
ScopeException(java.lang.Throwable cause,
java.lang.Throwable commitException,
java.lang.Throwable rollbackException,
java.lang.Throwable setAutoCommitFalseException,
java.lang.Throwable closeException)
|
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the root cause of this ScopeException. |
java.lang.Throwable |
getCloseException()
Returns the exception thrown when closing the connection. |
java.lang.Throwable |
getCommitException()
Returns the exception thrown when committing the transaction. |
java.lang.Throwable |
getRollbackException()
Returns the exception thrown when rolling back the transaction. |
java.lang.Throwable |
getSetAutoCommitFalseException()
Returns the exception thrown when calling setAutoCommit(false) on the connection. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Throwable closeException
protected java.lang.Throwable commitException
protected java.lang.Throwable rollbackException
protected java.lang.Throwable setAutoCommitFalseException
Constructor Detail |
---|
public ScopeException()
public ScopeException(java.lang.String message)
public ScopeException(java.lang.Throwable cause)
public ScopeException(java.lang.String message, java.lang.Throwable cause)
public ScopeException(java.lang.Throwable cause, java.lang.Throwable commitException, java.lang.Throwable rollbackException, java.lang.Throwable setAutoCommitFalseException, java.lang.Throwable closeException)
public ScopeException(java.lang.String message, java.lang.Throwable cause, java.lang.Throwable commitException, java.lang.Throwable rollbackException, java.lang.Throwable setAutoCommitFalseException, java.lang.Throwable closeException)
Method Detail |
---|
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.lang.Throwable getCloseException()
public java.lang.Throwable getCommitException()
public java.lang.Throwable getRollbackException()
public java.lang.Throwable getSetAutoCommitFalseException()
public java.lang.String toString()
toString
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |