Class MCRRestAPIException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mycore.restapi.v1.errors.MCRRestAPIException
All Implemented Interfaces:
Serializable

public class MCRRestAPIException extends Exception
exception that can be thrown during rest api requests
Version:
$Revision: $ $Date: $
Author:
Robert Stephan
See Also:
  • Constructor Details

    • MCRRestAPIException

      public MCRRestAPIException(jakarta.ws.rs.core.Response.Status status, MCRRestAPIError error)
    • MCRRestAPIException

      public MCRRestAPIException(jakarta.ws.rs.core.Response.Status status, List<MCRRestAPIError> errors)
  • Method Details

    • getErrors

      public List<MCRRestAPIError> getErrors()
    • getStatus

      public jakarta.ws.rs.core.Response.Status getStatus()
    • setStatus

      public void setStatus(jakarta.ws.rs.core.Response.Status status)