Class MethodNotSupportedException

  • All Implemented Interfaces:
    Serializable

    public class MethodNotSupportedException
    extends TopazAPIRuntimeException
    MethodNotSupportedException is an unchecked exception thrown when a method called from the Topaz API is not supported on the used host.
    Since:
    1.0.0
    Version:
    2.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MethodNotSupportedException

        public MethodNotSupportedException​(String message,
                                           String localizedMessage,
                                           IHost host)
        Constructs a new method not supported exception with the specified detail messages and host. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
        Parameters:
        message - the non-localized detail message (which is saved for later retrieval by the Throwable.getMessage() method).
        localizedMessage - the localized description (which is saved for later retrieval by the TopazAPIRuntimeException.getLocalizedMessage() method). (A null value is permitted, in which case getLocalizedMessage() will return the non-localized detail message.)
        host - the host associated with this exception
        Since:
        1.0.0
      • MethodNotSupportedException

        public MethodNotSupportedException​(String message,
                                           String localizedMessage,
                                           Throwable cause,
                                           IHost host)
        Constructs a new method not supported exception with the specified detail messages, cause, and host.

        Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

        Parameters:
        message - the non-localized detail message (which is saved for later retrieval by the Throwable.getMessage() method).
        localizedMessage - the localized description (which is saved for later retrieval by the TopazAPIRuntimeException.getLocalizedMessage() method). (A null value is permitted, in which case getLocalizedMessage() will return the non-localized detail message.)
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
        host - the host associated with this exception
        Since:
        1.0.0
    • Method Detail

      • getHost

        public IHost getHost()
        Returns the host that does not support the method.
        Returns:
        the host
        Since:
        1.0.0