Package org.n52.web.exception
Class ExceptionResponse
java.lang.Object
org.n52.web.exception.ExceptionResponse
Wraps all WebExceptions thrown by controlled workflow. If unexpected
Exceptions occur a general InternalServerException should be wrapped
so that all exceptions interrupting the expected workflow can be serialized
and returned to the requesting user/service.
To ensure all exceptions are handled and communicated to the user all Web
bindings shall inherit from BaseController which is
configured by default to serve as a central ExceptionHandler.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionResponsecreateExceptionResponse(WebException e, org.springframework.http.HttpStatus statusCode) String[]getHints()int
-
Method Details
-
getStatusCode
public int getStatusCode() -
getReason
-
getUserMessage
-
getDeveloperMessage
-
getHints
-
createExceptionResponse
public static ExceptionResponse createExceptionResponse(WebException e, org.springframework.http.HttpStatus statusCode)
-