public class FastUnsupportedCallbackException extends UnsupportedCallbackException
UnsupportedCallbackException
which does not initialize a full stack trace, and thus is much
more efficient to construct.Constructor and Description |
---|
FastUnsupportedCallbackException(Callback callback)
Constructs a new
FastUnsupportedCallbackException instance. |
FastUnsupportedCallbackException(Callback callback,
String msg)
Constructs a new
FastUnsupportedCallbackException instance with an initial message. |
Modifier and Type | Method and Description |
---|---|
Throwable |
fillInStackTrace()
Does nothing but return this instance.
|
String |
getMessage()
Get the message for this exception, formatted with the callback.
|
StackTraceElement[] |
getStackTrace()
Returns an empty stack.
|
Throwable |
initCause(Throwable cause)
Does nothing but return this instance.
|
void |
setStackTrace(StackTraceElement[] stackTrace)
Does nothing.
|
getCallback
addSuppressed, getCause, getLocalizedMessage, getSuppressed, printStackTrace, printStackTrace, printStackTrace, toString
public FastUnsupportedCallbackException(Callback callback)
FastUnsupportedCallbackException
instance. The message is left blank (null
),
and no cause is specified.callback
- the callback which is not supported (should not be null
)public FastUnsupportedCallbackException(Callback callback, String msg)
FastUnsupportedCallbackException
instance with an initial message. No cause is
specified.callback
- the callback which is not supported (should not be null
)msg
- the messagepublic StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
public Throwable fillInStackTrace()
fillInStackTrace
in class Throwable
public void setStackTrace(StackTraceElement[] stackTrace)
setStackTrace
in class Throwable
stackTrace
- ignoredpublic String getMessage()
getMessage
in class Throwable
null
)Copyright © 2020 JBoss by Red Hat. All rights reserved.