Package org.yamcs.http
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.yamcs.http.HttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException
,ForbiddenException
,InternalServerErrorException
,MethodNotAllowedException
,NotFoundException
,ServiceUnavailableException
,UnauthorizedException
Default HTTP exception.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Message
abstract io.netty.handler.codec.http.HttpResponseStatus
boolean
void
setDetail
(com.google.protobuf.Message detail) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpException
public HttpException() -
HttpException
-
HttpException
-
HttpException
-
-
Method Details
-
getStatus
public abstract io.netty.handler.codec.http.HttpResponseStatus getStatus() -
isServerError
public boolean isServerError() -
getDetail
public com.google.protobuf.Message getDetail() -
setDetail
public void setDetail(com.google.protobuf.Message detail) -
toMessage
-