public class OAuthServiceException extends SdkClientException
Constructor and Description |
---|
OAuthServiceException(String errorMessage)
Constructs a new OAuthServiceException with the specified message.
|
OAuthServiceException(String errorMessage,
Exception cause)
Constructs a new OAuthServiceException with the specified message and
exception indicating the root cause.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage() |
int |
getStatusCode() |
String |
getStatusMessage() |
void |
setErrorMessage(String value)
Sets the human-readable error message provided by the service.
|
void |
setStatusCode(int statusCode)
Sets the status code returned by the server.
|
void |
setStatusMessage(String statusMessage)
Sets the status message returned by the server.
|
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OAuthServiceException(String errorMessage)
errorMessage
- An error message describing what went wrong.public OAuthServiceException(String errorMessage, Exception cause)
errorMessage
- An error message describing what went wrong.cause
- The root exception that caused this exception to be thrown.public String getErrorMessage()
public void setErrorMessage(String value)
public int getStatusCode()
public void setStatusCode(int statusCode)
public String getStatusMessage()
public void setStatusMessage(String statusMessage)
Copyright © 2024. All rights reserved.