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
public abstract class HttpException extends RuntimeException
Default HTTP exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException()HttpException(String message)HttpException(String message, Throwable t)HttpException(Throwable t)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.protobuf.MessagegetDetail()abstract io.netty.handler.codec.http.HttpResponseStatusgetStatus()booleanisServerError()voidsetDetail(com.google.protobuf.Message detail)org.yamcs.api.ExceptionMessagetoMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
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
public org.yamcs.api.ExceptionMessage toMessage()
-
-