Class ErrorResponseException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      ErrorResponseException​(se.arkalix.net.http.HttpIncomingResponse 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 se.arkalix.net.http.HttpIncomingResponseUnexpected

        format, headers, response, status
      • Methods inherited from class se.arkalix.net.http.HttpOutgoingRequestException

        getMessage, request
      • Methods inherited from class se.arkalix.net.MessageException

        message
      • 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​(se.arkalix.net.http.HttpIncomingResponse response,
                                      ErrorResponse error)
        Creates new HTTP response containing given error.
        Parameters:
        error - Core service error to include in exception.
    • Method Detail

      • error

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