Class UnexpectedResponseException

  • All Implemented Interfaces:
    Serializable

    public final class UnexpectedResponseException
    extends io.rxmicro.http.error.HttpErrorException
    Signals that the HTTP response, generated by the request handler, contains validation errors.
    Since:
    0.1
    Author:
    nedis
    See Also:
    Serialized Form
    • Field Detail

      • STATUS_CODE

        public static final int STATUS_CODE
        Status code for the all instances of the current exception type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UnexpectedResponseException

        public UnexpectedResponseException​(String message,
                                           Object... args)
        Creates a HTTP error with error message.

        For all child classes which extend the HttpErrorException class, when creating an exception instance the stack trace is not filled, as this information is redundant.

        (This behavior is achieved by using the RuntimeException(String, Throwable, boolean, boolean).)

        (FYI: This constructor uses Formats.format(String, Object...) method to format error message.)

        Parameters:
        message - the error message template
        args - the error message template argument
        Throws:
        NullPointerException - if the error message template is null
        IllegalArgumentException - if detected a redundant placeholder or missing argument