public class TransactionException extends Exception
Constructor and Description |
---|
TransactionException(List<Throwable> causes)
Constructor with message specified.
|
TransactionException(String message,
List<Throwable> causes)
Constructor with message specified.
|
TransactionException(String message,
List<Throwable> causes,
boolean isNonRecoverable)
Constructor with message specified.
|
Modifier and Type | Method and Description |
---|---|
int |
exceptionCount() |
Throwable |
getCause() |
List<Throwable> |
getCauses() |
String |
getMessage() |
String |
getStackTraceString()
Utility method to get the stack trace for this exception as a string.
|
boolean |
isNonRecoverable() |
void |
printStackTrace() |
void |
printStackTrace(PrintStream writeTo) |
void |
printStackTrace(PrintWriter writeTo) |
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public TransactionException(List<Throwable> causes)
causes
- the list of Throwables which caused this exception.public TransactionException(String message, List<Throwable> causes)
message
- the message to give with the exception.causes
- the list of Throwables which caused this exception.public TransactionException(String message, List<Throwable> causes, boolean isNonRecoverable)
message
- the message to give with the exception.causes
- the list of Throwables which caused this exception.isNonRecoverable
- true if the storage engine could not recover from this
exception and corruption might have resulted.public List<Throwable> getCauses()
public int exceptionCount()
public boolean isNonRecoverable()
public String getMessage()
In this implementation the message is also included in the stack trace so calling both is redundant.
getMessage
in class Throwable
Throwable.getMessage()
public String getStackTraceString()
printStackTrace()
would have printed.public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream writeTo)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter writeTo)
printStackTrace
in class Throwable
Copyright © 2004–2021 XWiki. All rights reserved.