RecaptchaException

class RecaptchaException : Exception


Exception to be returned on reCAPTCHA Enterprise API failures.

Summary

Public constructors

RecaptchaException(errorCode: RecaptchaErrorCode, errorMessage: String)

Public properties

RecaptchaErrorCode

Returns the RecaptchaErrorCode associated with this exception.

String

Returns a useful message to help diagnose this exception.

Inherited properties

From kotlin.Throwable

Public constructors

RecaptchaException

RecaptchaException(
    errorCode: RecaptchaErrorCode,
    errorMessage: String = errorCode.errorMessage
)

Public properties

errorCode

val errorCodeRecaptchaErrorCode

Returns the RecaptchaErrorCode associated with this exception.

errorMessage

val errorMessageString

Returns a useful message to help diagnose this exception.