public class StitchRequestException extends StitchException
Exception class can be used to
produce that underlying error that caused a StitchRequestException. In the case of transport
errors, these exception are thrown by the underlying Transport of the Stitch client. An error in decoding the
result from the server is typically a IOException thrown internally by the Stitch
SDK.| Constructor and Description |
|---|
StitchRequestException(Exception underlyingException,
StitchRequestErrorCode errorCode)
Constructs a request exception from the underlying exception and error code.
|
StitchRequestException(String message,
StitchRequestErrorCode errorCode)
Constructs a request exception from an error code without an underlying exception.
|
| Modifier and Type | Method and Description |
|---|---|
StitchRequestErrorCode |
getErrorCode()
Returns the
StitchRequestErrorCode indicating the reason for this exception. |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic StitchRequestException(String message, StitchRequestErrorCode errorCode)
message - a message describing the specific exception.errorCode - the request error code associated with this exception.public StitchRequestException(Exception underlyingException, StitchRequestErrorCode errorCode)
underlyingException - the underlying exception that caused this exception.errorCode - the request error code associated with this exception.public StitchRequestErrorCode getErrorCode()
StitchRequestErrorCode indicating the reason for this exception.StitchRequestErrorCode indicating the reason for this exception.