Class ErrorResponseException

  • All Implemented Interfaces:

    public class ErrorResponseException
    Some error caused by a core service responding to a request with an ErrorResponse.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      ErrorResponseException​( response, ErrorResponse error)
      Creates new HTTP response containing given error.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ErrorResponse error()  
      • Methods inherited from class

        format, headers, response, status
      • Methods inherited from class

        getMessage, request
      • Methods inherited from class

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ErrorResponseException

        public ErrorResponseException​( response,
                                      ErrorResponse error)
        Creates new HTTP response containing given error.
        error - Core service error to include in exception.
    • Method Detail

      • error

        public ErrorResponse error()
        Error causing this exception to be thrown.