Class RequestFailure


  • @Internal
    public class RequestFailure
    extends Object
    A message indicating a protocol-related error.
    • Constructor Detail

      • RequestFailure

        public RequestFailure​(long requestId,
                              Throwable cause)
        Creates a failure response to a MessageBody.
        Parameters:
        requestId - ID for the request responding to
        cause - Failure cause (not allowed to be a user type)
    • Method Detail

      • getRequestId

        public long getRequestId()
        Returns the request ID responding to.
        Returns:
        Request ID responding to
      • getCause

        public Throwable getCause()
        Returns the failure cause.
        Returns:
        Failure cause