InvalidRequestException

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

Exception thrown for invalid or malformed API requests (HTTP 400, 404, 409, 415).

Common causes: invalid VIN, unsupported media type, resource conflict.

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.