AuthenticationException

class AuthenticationException(statusCode: Int, error: VolvoApiError, throwable: Throwable? = null) : VolvoAPIException(source)

Exception thrown when the access token is invalid or expired (HTTP 401).

Obtain a new OAuth2 access token via the Volvo ID identity system.

Constructors

Link copied to clipboard
constructor(statusCode: Int, error: VolvoApiError, throwable: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

The parsed error response body with code, message, and details.

Link copied to clipboard
expect open val message: String?
Link copied to clipboard

The HTTP status code returned by the API.