Package com.appslandia.plum.base
Class HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.appslandia.plum.base.HttpException
-
- All Implemented Interfaces:
ProblemSupport,Serializable
- Direct Known Subclasses:
BadRequestException,ForbiddenException,NotFoundException,PreconditionFailedException,ServiceUnavailableException,TooManyRequestsException,UnauthorizedException
public class HttpException extends RuntimeException implements ProblemSupport
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException(int status)HttpException(int status, String message)HttpException(int status, String message, Throwable cause)HttpException(int status, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProblemgetProblem()HttpExceptionsetDetailKey(ResKey detailKey)HttpExceptionsetDetailKey(String detailKey)HttpExceptionsetTitleKey(ResKey titleKey)HttpExceptionsetTitleKey(String titleKey)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getProblem
public Problem getProblem()
- Specified by:
getProblemin interfaceProblemSupport
-
setTitleKey
public HttpException setTitleKey(String titleKey)
-
setTitleKey
public HttpException setTitleKey(ResKey titleKey)
-
setDetailKey
public HttpException setDetailKey(String detailKey)
-
setDetailKey
public HttpException setDetailKey(ResKey detailKey)
-
-