PermissionException

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

Exception thrown when the API key lacks required permissions (HTTP 403).

Verify your VCC API key has the necessary scopes in the Volvo Developer Portal.

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.