StytchAPIError

data class StytchAPIError(val requestId: String? = null, val errorType: String, val message: String, val url: String? = null) : StytchError

An error class representing a non-schema error that occurs in the Stytch API

Constructors

Link copied to clipboard
constructor(requestId: String? = null, errorType: String, message: String, url: String? = null)

Properties

Link copied to clipboard

a Stytch-specific string representing the type of error that occurred

Link copied to clipboard
open override val message: String

a string providing more information about what went wrong. This may or may not be user-friendly

Link copied to clipboard
val requestId: String? = null

the request id of the request that triggered this error

Link copied to clipboard
val url: String? = null

a url linking to the Stytch documentation that describes this error