Class InvalidResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.auth.oauth2.InvalidResponseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnsupportedMediaTypeException, UnsupportedResponseException

@UnstableApi
public class InvalidResponseException
extends RuntimeException
An HTTP response that is not valid for the given request/response flow.
See Also:
Serialized Form
  • Constructor Details

    • InvalidResponseException

      public InvalidResponseException​(HttpStatus status, @Nullable String message)
      Constructs new InvalidResponseException.
      Parameters:
      status - An HttpStatus of the response.
      message - A response content
    • InvalidResponseException

      public InvalidResponseException​(HttpStatus status, @Nullable String message, @Nullable Throwable cause)
      Constructs new InvalidResponseException.
      Parameters:
      status - An HttpStatus of the response.
      message - A response content
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • InvalidResponseException

      public InvalidResponseException​(String status, @Nullable String message)
      Constructs new InvalidResponseException.
      Parameters:
      status - An HTTP status of the response.
      message - A response content
    • InvalidResponseException

      public InvalidResponseException​(String status, @Nullable String message, @Nullable Throwable cause)
      Constructs new InvalidResponseException.
      Parameters:
      status - An HTTP status of the response.
      message - A response content
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • getStatus

      public String getStatus()
      A status code of the response.