public class ExceptionManager extends Object
| Constructor and Description |
|---|
ExceptionManager() |
| Modifier and Type | Method and Description |
|---|---|
static BadRequestException |
badRequestException(javax.servlet.http.HttpServletRequest httpRequest,
String errorMessage,
Class thrownBy,
String helpURI)
Bad request exception.
|
static URI |
checkURI(String helpURI)
Check uri.
|
static ForbiddenRequestException |
forbiddenException(javax.servlet.http.HttpServletRequest httpRequest,
String errorMessage,
Class thrownBy,
String helpURI)
Forbidden exception.
|
static InternalServerException |
internalErrorException(javax.servlet.http.HttpServletRequest httpRequest,
String errorMessage,
Class thrownBy,
String helpURI)
Internal error exception.
|
static NotFoundException |
notFoundException(javax.servlet.http.HttpServletRequest httpRequest,
String errorMessage,
Class thrownBy,
String helpURI)
Not found exception.
|
static NotAuthorizedRequestException |
unauthorizedException(javax.servlet.http.HttpServletRequest httpRequest,
String errorMessage,
Class thrownBy,
String helpURI)
Unauthorized exception.
|
static WrongParameterException |
wrongParameterException(javax.servlet.http.HttpServletRequest httpRequest,
String errorMessage,
Class thrownBy,
String helpURI)
Wrong parameter exception.
|
public static InternalServerException internalErrorException(javax.servlet.http.HttpServletRequest httpRequest, String errorMessage, Class thrownBy, String helpURI)
httpRequest - the http requesterrorMessage - the error messagethrownBy - the thrown byhelpURI - the help uripublic static BadRequestException badRequestException(javax.servlet.http.HttpServletRequest httpRequest, String errorMessage, Class thrownBy, String helpURI)
httpRequest - the http requesterrorMessage - the error messagethrownBy - the thrown byhelpURI - the help uripublic static WrongParameterException wrongParameterException(javax.servlet.http.HttpServletRequest httpRequest, String errorMessage, Class thrownBy, String helpURI)
httpRequest - the http requesterrorMessage - the error messagethrownBy - the thrown byhelpURI - the help uripublic static NotFoundException notFoundException(javax.servlet.http.HttpServletRequest httpRequest, String errorMessage, Class thrownBy, String helpURI)
httpRequest - the http requesterrorMessage - the error messagethrownBy - the thrown byhelpURI - the help uripublic static NotAuthorizedRequestException unauthorizedException(javax.servlet.http.HttpServletRequest httpRequest, String errorMessage, Class thrownBy, String helpURI)
httpRequest - the http requesterrorMessage - the error messagethrownBy - the thrown byhelpURI - the help uripublic static ForbiddenRequestException forbiddenException(javax.servlet.http.HttpServletRequest httpRequest, String errorMessage, Class thrownBy, String helpURI)
httpRequest - the http requesterrorMessage - the error messagethrownBy - the thrown byhelpURI - the help uriCopyright © 2021. All Rights Reserved.