Package google.registry.request
Class HttpException.UnsupportedMediaTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
google.registry.request.HttpException
google.registry.request.HttpException.UnsupportedMediaTypeException
- All Implemented Interfaces:
Serializable
- Enclosing class:
HttpException
Exception that causes a 415 response.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.request.HttpException
HttpException.BadRequestException, HttpException.ConflictException, HttpException.ForbiddenException, HttpException.InternalServerErrorException, HttpException.MethodNotAllowedException, HttpException.NoContentException, HttpException.NotFoundException, HttpException.NotImplementedException, HttpException.NotModifiedException, HttpException.ServiceUnavailableException, HttpException.UnprocessableEntityException, HttpException.UnsupportedMediaTypeException
-
Constructor Summary
ConstructorDescriptionUnsupportedMediaTypeException
(String message) UnsupportedMediaTypeException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns the string associated with a particular response code.Methods inherited from class google.registry.request.HttpException
getResponseCode, send
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedMediaTypeException
-
UnsupportedMediaTypeException
-
-
Method Details
-
getResponseCodeString
Description copied from class:HttpException
Returns the string associated with a particular response code. UnlikeThrowable.getMessage()
, which is meant to describe the circumstances under which this particular exception occurred, this method always returns the same string (e.g. "Not Found" for a 400 error), and so should always be the same for a given subclass ofHttpException
.- Overrides:
getResponseCodeString
in classHttpException
-