- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.rxmicro.common.RxMicroException
-
- io.rxmicro.http.error.HttpErrorException
-
- io.rxmicro.validation.UnexpectedResponseException
-
- All Implemented Interfaces:
Serializable
public final class UnexpectedResponseException extends io.rxmicro.http.error.HttpErrorExceptionSignals that the HTTP response, generated by the request handler, contains validation errors.- Since:
- 0.1
- Author:
- nedis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedResponseException(String message, Object... args)Creates a HTTP error with error message.
-
Method Summary
-
Methods inherited from class io.rxmicro.http.error.HttpErrorException
getStatusCode, isClientErrorCode, isInformationalCode, isRedirectCode, isServerErrorCode, isSuccessCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 templateargs- the error message template argument- Throws:
NullPointerException- if the error message template isnullIllegalArgumentException- if detected a redundant placeholder or missing argument
-
-