Class ErrorMessage

java.lang.Object
io.goobi.viewer.api.rest.model.ErrorMessage
All Implemented Interfaces:
IResponseMessage

public class ErrorMessage extends Object implements IResponseMessage

ErrorMessage class.

Author:
Florian Alpers
  • Constructor Details

    • ErrorMessage

      public ErrorMessage()
    • ErrorMessage

      public ErrorMessage(int status, String message)

      Constructor for ErrorMessage.

      Parameters:
      status - a int.
      message - a String object.
    • ErrorMessage

      public ErrorMessage(int status, String message, String stackTrace)

      Constructor for ErrorMessage.

      Parameters:
      status - a int.
      message - a String object.
      stackTrace - a String object.
    • ErrorMessage

      public ErrorMessage(RestApiException exception)

      Constructor for ErrorMessage.

      Parameters:
      exception - a RestApiException object.
  • Method Details

    • getStatus

      public int getStatus()

      Getter for the field status.

      Returns:
      the status
    • getMessage

      public String getMessage()

      Getter for the field message.

      Specified by:
      getMessage in interface IResponseMessage
      Returns:
      the message
    • getStackTrace

      public String getStackTrace()

      Getter for the field stackTrace.

      Returns:
      the stackTrace