UnknownException

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

Exception thrown for API errors not covered by other exception types.

Check statusCode and error for details about the specific error.

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.