OAuth2Exception

sealed class OAuth2Exception : Exception

Represents a error during communicating to OAuth2 server

Types

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

Thrown when OAuth2 server responded error="invalid_grant"

Link copied to clipboard
class MissingAccessToken : OAuth2Exception

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

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

OAuth2 server responded with an error code errorCode

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

Throw when an OAuth2 server replied with error "unsupported_grant_type"

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