UnsupportedCallbackException

  • UnsupportedCallbackException signals that a CallbackHandler doesn't recognize a specific Callback.

  • It provides constructors to create the exception with or without a detailed message, specifying the unrecognized Callback.

  • The getCallback() method allows retrieval of the unrecognized Callback object.

  • It inherits methods from Exception for handling and providing information about the exception.

public class UnsupportedCallbackException extends Exception

Signals that a CallbackHandler does not recognize a particular Callback.

Public Constructor Summary

UnsupportedCallbackException(Callback callback)
Constructs a UnsupportedCallbackException with no detail message.
UnsupportedCallbackException(Callback callback, String msg)
Constructs a UnsupportedCallbackException with the specified detail message.

Public Method Summary

Callback
getCallback()
Get the unrecognized Callback.

Inherited Method Summary

Public Constructors

public UnsupportedCallbackException (Callback callback)

Constructs a UnsupportedCallbackException with no detail message.

Parameters
callback the unrecognized Callback.

public UnsupportedCallbackException (Callback callback, String msg)

Constructs a UnsupportedCallbackException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters
callback the unrecognized Callback.

msg the detail message.

Public Methods

public Callback getCallback ()

Get the unrecognized Callback.

Returns
  • the unrecognized Callback.