Class ContentExceptionMapper.ErrorMessage

java.lang.Object
io.goobi.viewer.api.rest.exceptions.ContentExceptionMapper.ErrorMessage
Enclosing class:
ContentExceptionMapper

public static class ContentExceptionMapper.ErrorMessage extends Object
  • Constructor Details

    • ErrorMessage

      public ErrorMessage()
    • ErrorMessage

      public ErrorMessage(Response.Status status, Throwable e, boolean printStackTrace)
      Parameters:
      status - HTTP status for the error response
      e - the exception that caused the error
      printStackTrace - 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 response
      e - the exception that caused the error
      errorImage - URL or path of an error image to include
      printStackTrace - whether to include the stack trace in the response