Package com.appslandia.plum.base
Class ServiceUnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.appslandia.plum.base.HttpException
-
- com.appslandia.plum.base.ServiceUnavailableException
-
- All Implemented Interfaces:
HttpHeaderApply,ProblemSupport,Serializable
@NotLog public class ServiceUnavailableException extends HttpException implements HttpHeaderApply
- Author:
- Loc Ha
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceUnavailableException()ServiceUnavailableException(String message)ServiceUnavailableException(String message, Throwable cause)ServiceUnavailableException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(javax.servlet.http.HttpServletResponse response)StringgetReason()LonggetRetryAfter()ServiceUnavailableExceptionsetDetailKey(ResKey detailKey)ServiceUnavailableExceptionsetDetailKey(String detailKey)ServiceUnavailableExceptionsetReason(String reason)ServiceUnavailableExceptionsetRetryAfter(Long retryAfter)ServiceUnavailableExceptionsetTitleKey(ResKey titleKey)ServiceUnavailableExceptionsetTitleKey(String titleKey)-
Methods inherited from class com.appslandia.plum.base.HttpException
getProblem
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
apply
public void apply(javax.servlet.http.HttpServletResponse response)
- Specified by:
applyin interfaceHttpHeaderApply
-
getReason
public String getReason()
-
setReason
public ServiceUnavailableException setReason(String reason)
-
getRetryAfter
public Long getRetryAfter()
-
setRetryAfter
public ServiceUnavailableException setRetryAfter(Long retryAfter)
-
setTitleKey
public ServiceUnavailableException setTitleKey(String titleKey)
- Overrides:
setTitleKeyin classHttpException
-
setTitleKey
public ServiceUnavailableException setTitleKey(ResKey titleKey)
- Overrides:
setTitleKeyin classHttpException
-
setDetailKey
public ServiceUnavailableException setDetailKey(String detailKey)
- Overrides:
setDetailKeyin classHttpException
-
setDetailKey
public ServiceUnavailableException setDetailKey(ResKey detailKey)
- Overrides:
setDetailKeyin classHttpException
-
-