Class RestApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.goobi.viewer.exceptions.RestApiException
All Implemented Interfaces:
Serializable

public class RestApiException extends Exception

RestApiException class.

Author:
Florian Alpers
See Also:
  • Constructor Details

    • RestApiException

      public RestApiException(int statusCode)

      Constructor for RestApiException.

      Parameters:
      statusCode - a int.
    • RestApiException

      public RestApiException(String message, Throwable cause, int statusCode)

      Constructor for RestApiException.

      Parameters:
      message - a String object.
      cause - a Throwable object.
      statusCode - a int.
    • RestApiException

      public RestApiException(String message, Throwable cause, javax.ws.rs.core.Response.Status status)
    • RestApiException

      public RestApiException(String message, int statusCode)

      Constructor for RestApiException.

      Parameters:
      message - a String object.
      statusCode - a int.
    • RestApiException

      public RestApiException(String message, javax.ws.rs.core.Response.Status status)
    • RestApiException

      public RestApiException(Throwable cause, int statusCode)

      Constructor for RestApiException.

      Parameters:
      cause - a Throwable object.
      statusCode - a int.
    • RestApiException

      public RestApiException(Throwable cause, javax.ws.rs.core.Response.Status status)
  • Method Details

    • getStatusCode

      public int getStatusCode()

      Getter for the field statusCode.

      Returns:
      the statusCode
    • getStatus

      public javax.ws.rs.core.Response.Status getStatus()