Class FastUnsupportedCallbackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.security.auth.callback.UnsupportedCallbackException
org.wildfly.security.auth.callback.FastUnsupportedCallbackException
- All Implemented Interfaces:
Serializable
A version of
UnsupportedCallbackException which does not initialize a full stack trace, and thus is much
more efficient to construct.- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFastUnsupportedCallbackException(Callback callback) Constructs a newFastUnsupportedCallbackExceptioninstance.FastUnsupportedCallbackException(Callback callback, String msg) Constructs a newFastUnsupportedCallbackExceptioninstance with an initial message. -
Method Summary
Modifier and TypeMethodDescriptionDoes nothing but return this instance.Get the message for this exception, formatted with the callback.Returns an empty stack.Does nothing but return this instance.voidsetStackTrace(StackTraceElement[] stackTrace) Does nothing.Methods inherited from class javax.security.auth.callback.UnsupportedCallbackException
getCallbackMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getSuppressed, printStackTrace, printStackTrace, printStackTrace, toString
-
Constructor Details
-
FastUnsupportedCallbackException
Constructs a newFastUnsupportedCallbackExceptioninstance. The message is left blank (null), and no cause is specified.- Parameters:
callback- the callback which is not supported (should not benull)
-
FastUnsupportedCallbackException
Constructs a newFastUnsupportedCallbackExceptioninstance with an initial message. No cause is specified.- Parameters:
callback- the callback which is not supported (should not benull)msg- the message
-
-
Method Details
-
initCause
Does nothing but return this instance. -
getStackTrace
Returns an empty stack.- Overrides:
getStackTracein classThrowable- Returns:
- an empty stack
-
fillInStackTrace
Does nothing but return this instance.- Overrides:
fillInStackTracein classThrowable- Returns:
- this instance
-
setStackTrace
Does nothing.- Overrides:
setStackTracein classThrowable- Parameters:
stackTrace- ignored
-
getMessage
Get the message for this exception, formatted with the callback.- Overrides:
getMessagein classThrowable- Returns:
- the message for this exception, with the callback (not
null)
-