Package javax.security.auth.callback
Class UnsupportedCallbackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.security.auth.callback.UnsupportedCallbackException
- All Implemented Interfaces:
Serializable
public class UnsupportedCallbackException extends Exception
Thrown when a
CallbackHandler does not support a particular Callback.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnsupportedCallbackException(Callback callback)Creates a new exception instance and initializes it with just the unsupportedCallback, but no error message.UnsupportedCallbackException(Callback callback, String message)Creates a new exception instance and initializes it with both the unsupportedCallbackand an error message. -
Method Summary
Modifier and Type Method Description CallbackgetCallback()Returns the unsupportedCallbackthat triggered this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedCallbackException
Creates a new exception instance and initializes it with just the unsupportedCallback, but no error message.- Parameters:
callback- theCallback
-
UnsupportedCallbackException
Creates a new exception instance and initializes it with both the unsupportedCallbackand an error message.- Parameters:
callback- theCallbackmessage- the error message
-
-
Method Details
-
getCallback
Returns the unsupportedCallbackthat triggered this exception.- Returns:
- the
Callback
-