Class ContentExceptionMapper.ErrorMessage
java.lang.Object
io.goobi.viewer.api.rest.exceptions.ContentExceptionMapper.ErrorMessage
- Enclosing class:
ContentExceptionMapper
-
Constructor Summary
ConstructorsConstructorDescriptionErrorMessage(Response.Status status, Throwable e, boolean printStackTrace) ErrorMessage(Response.Status status, Throwable e, String errorImage, boolean printStackTrace) -
Method Summary
-
Constructor Details
-
ErrorMessage
public ErrorMessage() -
ErrorMessage
- Parameters:
status- HTTP status for the error responsee- the exception that caused the errorprintStackTrace- whether to include the stack trace in the response
-
ErrorMessage
public ErrorMessage(Response.Status status, Throwable e, String errorImage, boolean printStackTrace) - Parameters:
status- HTTP status for the error responsee- the exception that caused the errorerrorImage- URL or path of an error image to includeprintStackTrace- whether to include the stack trace in the response
-