public class StackSuppressedRuntimeException
extends java.lang.RuntimeException
RuntimeException
which does not generate a stack at it's point of creation.
Generating a stack trace in java is very expensive, and does not always further the understanding
of the type of error (particularly when the exception is wrapping another exception, or is a
communication of state). In those select conditions using or extending this type of exception
can provide a significant performance gain.Constructor and Description |
---|
StackSuppressedRuntimeException()
Construct a new exception with no message or cause.
|
StackSuppressedRuntimeException(java.lang.String msg)
Construct a new exception with a provided message and no cause.
|
StackSuppressedRuntimeException(java.lang.String msg,
java.lang.Throwable cause)
Construct a new exception providing both a unique message and cause.
|
StackSuppressedRuntimeException(java.lang.Throwable cause)
Construct a new exception with a provided cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
fillInStackTrace() |
public StackSuppressedRuntimeException()
Throwable.initCause(java.lang.Throwable)
.public StackSuppressedRuntimeException(java.lang.String msg)
msg
- The message which can later be retrieved by Throwable.getMessage()
public StackSuppressedRuntimeException(java.lang.Throwable cause)
cause
- The cause which contributed to this exceptionpublic StackSuppressedRuntimeException(java.lang.String msg, java.lang.Throwable cause)
msg
- The message which can later be retrieved by Throwable.getMessage()
cause
- The cause which contributed to this exception