Package com.mongodb.stitch.core
Class StitchClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.stitch.core.StitchException
-
- com.mongodb.stitch.core.StitchClientException
-
- All Implemented Interfaces:
Serializable
public final class StitchClientException extends StitchException
An exception indicating that an error occurred when using the Stitch client, typically before the client performed a request. An error code indicating the reason for the error is included.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StitchClientException(StitchClientErrorCode errorCode)
Constructs a client exception with the given error code.
-
Method Summary
Modifier and Type Method Description StitchClientErrorCode
getErrorCode()
Returns theStitchClientErrorCode
associated with the request.String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
StitchClientException
public StitchClientException(StitchClientErrorCode errorCode)
Constructs a client exception with the given error code.- Parameters:
errorCode
- the client error code.
-
-
Method Detail
-
getErrorCode
public StitchClientErrorCode getErrorCode()
Returns theStitchClientErrorCode
associated with the request.- Returns:
- the
StitchClientErrorCode
associated with the request.
-
-