Class InvalidResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.auth.oauth2.InvalidResponseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnsupportedMediaTypeException
,UnsupportedResponseException
@UnstableApi public class InvalidResponseException extends RuntimeException
An HTTP response that is not valid for the given request/response flow.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description InvalidResponseException(HttpStatus status, String message)
Constructs newInvalidResponseException
.InvalidResponseException(HttpStatus status, String message, Throwable cause)
Constructs newInvalidResponseException
.InvalidResponseException(String status, String message)
Constructs newInvalidResponseException
.InvalidResponseException(String status, String message, Throwable cause)
Constructs newInvalidResponseException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidResponseException
Constructs newInvalidResponseException
.- Parameters:
status
- AnHttpStatus
of the response.message
- A response content
-
InvalidResponseException
public InvalidResponseException(HttpStatus status, @Nullable String message, @Nullable Throwable cause)Constructs newInvalidResponseException
.- 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.)
-
InvalidResponseException
Constructs newInvalidResponseException
.- Parameters:
status
- An HTTP status of the response.message
- A response content
-
InvalidResponseException
public InvalidResponseException(String status, @Nullable String message, @Nullable Throwable cause)Constructs newInvalidResponseException
.- Parameters:
status
- An HTTP status 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.)
-
-
Method Details
-
getStatus
A status code of the response.
-