Class AppExceptionMessage

java.lang.Object
org.eclipse.dirigible.commons.api.helpers.AppExceptionMessage

public class AppExceptionMessage
extends Object
Error message that is returned if an application error occur.
  • Constructor Details

    • AppExceptionMessage

      public AppExceptionMessage()
      Needed for serialization / de-serialization.
    • AppExceptionMessage

      public AppExceptionMessage​(javax.ws.rs.core.Response.Status status, String message)
      Default constructor.
      Parameters:
      status - the response server status.
      message - the actual error message.
  • Method Details

    • getMessage

      public String getMessage()
      Gets the message.
      Returns:
      the error message.
    • setMessage

      public void setMessage​(String message)
      Sets the error message.
      Parameters:
      message - the new message
    • getStatus

      public int getStatus()
      Sets the server response status.
      Returns:
      the server response status.
    • setStatus

      public void setStatus​(int status)
      Sets the status.
      Parameters:
      status - the server response status.