Class AuthException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.stackone.stackone_client_java.models.errors.StackOneError
-
- com.stackone.stackone_client_java.models.errors.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.net.http.HttpResponse<java.io.InputStream>rawResponse()Returns the raw HTTP response associated with this exception.java.util.Optional<java.lang.Integer>statusCode()Deprecated.UseStackOneError.code()instead.-
Methods inherited from class com.stackone.stackone_client_java.models.errors.StackOneError
body, bodyAsString, code, headers, message, toString, withBody, withCode, withRawResponse
-
-
-
-
Method Detail
-
statusCode
@Deprecated public java.util.Optional<java.lang.Integer> statusCode()
Deprecated.UseStackOneError.code()instead.Returns the HTTP status code of the response.
-
rawResponse
public java.net.http.HttpResponse<java.io.InputStream> rawResponse()
Description copied from class:StackOneErrorReturns the raw HTTP response associated with this exception. The response body stream may not be available (but the body can be accessed via thebody()method).- Overrides:
rawResponsein classStackOneError- Returns:
- the raw HTTP response
-
-