Class UnsupportedMediaTypeException
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.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
A response
Content-Type
header does not match the expected type.- See Also:
-
Constructor Summary
ConstructorDescriptionUnsupportedMediaTypeException
(String mediaType, String status, @Nullable String message) Constructs newUnsupportedMediaTypeException
.UnsupportedMediaTypeException
(String mediaType, String status, @Nullable String message, @Nullable Throwable cause) Constructs newUnsupportedMediaTypeException
. -
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
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException(String mediaType, String status, @Nullable @Nullable String message) Constructs newUnsupportedMediaTypeException
.- Parameters:
mediaType
- AContent-Type
of the response.status
- An HTTP status of the response.message
- A response content
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException(String mediaType, String status, @Nullable @Nullable String message, @Nullable @Nullable Throwable cause) Constructs newUnsupportedMediaTypeException
.- Parameters:
mediaType
- AContent-Type
of the response.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
-
getMediaType
AContent-Type
of the response.
-