Package google.registry.request
Class HttpException.NoContentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- google.registry.request.HttpException
-
- google.registry.request.HttpException.NoContentException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- HttpException
public static final class HttpException.NoContentException extends HttpException
Exception that causes a 204 response.This is useful for App Engine task queue handlers that want to display an error, but don't want the task to automatically retry, since the status code is less than 300.
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description NoContentException(java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResponseCodeString()
Returns the string associated with a particular response code.-
Methods inherited from class google.registry.request.HttpException
getResponseCode, send
-
-
-
-
Method Detail
-
getResponseCodeString
public java.lang.String 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
-
-