Package com.stytch.sdk.common.errors
Class StytchAPIError
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class StytchAPIError extends StytchError
An error class representing a non-schema error that occurs in the Stytch API
-
-
Field Summary
Fields Modifier and Type Field Description private final StringrequestIdprivate final StytchAPIErrorTypeerrorTypeprivate final Stringmessageprivate final Stringurlprivate final IntegerstatusCode
-
Constructor Summary
Constructors Constructor Description StytchAPIError(String requestId, StytchAPIErrorType errorType, String message, String url, Integer statusCode)
-
Method Summary
Modifier and Type Method Description final StringgetRequestId()the request id of the request that triggered this error final StytchAPIErrorTypegetErrorType()a Stytch-specific error type representing the type of error that occurred StringgetMessage()a string providing more information about what went wrong. final StringgetUrl()a url linking to the Stytch documentation that describes this error final IntegergetStatusCode()the HTTP status code that was returned for this request -
-
Constructor Detail
-
StytchAPIError
StytchAPIError(String requestId, StytchAPIErrorType errorType, String message, String url, Integer statusCode)
-
-
Method Detail
-
getRequestId
final String getRequestId()
the request id of the request that triggered this error
-
getErrorType
final StytchAPIErrorType getErrorType()
a Stytch-specific error type representing the type of error that occurred
-
getMessage
String getMessage()
a string providing more information about what went wrong. This may or may not be user-friendly
-
getStatusCode
final Integer getStatusCode()
the HTTP status code that was returned for this request
-
-
-
-