public final class ExceptionResponse
extends java.lang.Object
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.
| Modifier and Type | Method and Description |
|---|---|
static ExceptionResponse |
createExceptionResponse(WebException e,
org.springframework.http.HttpStatus statusCode) |
java.lang.String |
getDeveloperMessage() |
java.lang.String[] |
getHints() |
java.lang.String |
getReason() |
int |
getStatusCode() |
java.lang.String |
getUserMessage() |
public int getStatusCode()
public java.lang.String getReason()
public java.lang.String getUserMessage()
public java.lang.String getDeveloperMessage()
public java.lang.String[] getHints()
public static ExceptionResponse createExceptionResponse(WebException e, org.springframework.http.HttpStatus statusCode)
Copyright © 2013–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.