Class UnsupportedResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.auth.oauth2.InvalidResponseException
com.linecorp.armeria.common.auth.oauth2.UnsupportedResponseException
- All Implemented Interfaces:
Serializable
A response type in not supported by the given request/response flow.
- See Also:
-
Constructor Summary
ConstructorDescriptionUnsupportedResponseException
(HttpStatus status, @Nullable String message) Constructs newUnsupportedResponseException
.UnsupportedResponseException
(HttpStatus status, @Nullable String message, @Nullable Throwable cause) Constructs newUnsupportedResponseException
. -
Method Summary
Methods inherited from class com.linecorp.armeria.common.auth.oauth2.InvalidResponseException
getStatus
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedResponseException
Constructs newUnsupportedResponseException
.- Parameters:
status
- AnHttpStatus
of the response.message
- A response content
-
UnsupportedResponseException
public UnsupportedResponseException(HttpStatus status, @Nullable @Nullable String message, @Nullable @Nullable Throwable cause) Constructs newUnsupportedResponseException
.- Parameters:
status
- AnHttpStatus
of the response.message
- A response contentcause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-