public class DatabaseUnitRuntimeException extends RuntimeException
Constructor and Description |
---|
DatabaseUnitRuntimeException()
Constructs an
DatabaseUnitRuntimeException with no specified
detail message and no encapsulated exception. |
DatabaseUnitRuntimeException(String msg)
Constructs an
DatabaseUnitRuntimeException with the specified
detail message and no encapsulated exception. |
DatabaseUnitRuntimeException(String msg,
Throwable cause)
Constructs an
DatabaseUnitRuntimeException with the specified
detail message and encapsulated exception. |
DatabaseUnitRuntimeException(Throwable cause)
Constructs an
DatabaseUnitRuntimeException with the encapsulated
exception and use its message as detail message. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Deprecated.
Use
Throwable.getCause() instead |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DatabaseUnitRuntimeException()
DatabaseUnitRuntimeException
with no specified
detail message and no encapsulated exception.public DatabaseUnitRuntimeException(String msg)
DatabaseUnitRuntimeException
with the specified
detail message and no encapsulated exception.msg
- Exception messagepublic DatabaseUnitRuntimeException(String msg, Throwable cause)
DatabaseUnitRuntimeException
with the specified
detail message and encapsulated exception.msg
- cause
- The cause of this exceptionpublic DatabaseUnitRuntimeException(Throwable cause)
DatabaseUnitRuntimeException
with the encapsulated
exception and use its message as detail message.cause
- The cause of this exceptionpublic Throwable getException()
Throwable.getCause()
insteadnull
if none.Copyright © 2002-2016. All Rights Reserved.