Class AuthException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AuthException
    extends StackOneError
    An exception associated with Authentication or Authorization.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthException​(java.lang.String message, int code, byte[] body, java.net.http.HttpResponse<java.io.InputStream> rawResponse)  
    • Constructor Detail

      • AuthException

        public AuthException​(java.lang.String message,
                             int code,
                             byte[] body,
                             java.net.http.HttpResponse<java.io.InputStream> rawResponse)
    • Method Detail

      • statusCode

        @Deprecated
        public java.util.Optional<java.lang.Integer> statusCode()
        Deprecated.
        Returns the HTTP status code of the response.
      • rawResponse

        public java.net.http.HttpResponse<java.io.InputStream> rawResponse()
        Description copied from class: StackOneError
        Returns the raw HTTP response associated with this exception. The response body stream may not be available (but the body can be accessed via the body() method).
        Overrides:
        rawResponse in class StackOneError
        Returns:
        the raw HTTP response