OAuth2Exception

sealed class OAuth2Exception : Exception

Represents an error during communicating to OAuth2 server.

Types

Link copied to clipboard
class InvalidGrant(message: String) : OAuth2Exception

Thrown when OAuth2 server responds with the "invalid_grant" error.

Link copied to clipboard
class InvalidNonce : OAuth2Exception

Thrown when a nonce verification failed.

Link copied to clipboard
class MissingAccessToken : OAuth2Exception

Thrown when an OAuth2 server responds with a successful HTTP status and expected content type that was successfully decoded but the response doesn't contain a error code nor access token.

Link copied to clipboard
class UnknownException(details: String, errorCode: String) : OAuth2Exception, CopyableThrowable<OAuth2Exception.UnknownException>

Thrown when an OAuth2 server responds with errorCode.

Link copied to clipboard
class UnsupportedGrantType(grantType: String) : OAuth2Exception, CopyableThrowable<OAuth2Exception.UnsupportedGrantType>

Thrown when an OAuth2 server responds with the "unsupported_grant_type" error.

Functions

Link copied to clipboard
fun addSuppressed(p0: Throwable)
Link copied to clipboard
open fun fillInStackTrace(): Throwable
Link copied to clipboard
open fun getLocalizedMessage(): String
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val errorCode: String?

OAuth2 server replied with

Link copied to clipboard
open val message: String?

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard