Instance Propertyswift-openapi-runtime 1.6.0OpenAPIRuntime
errorDescription
A localized description of the client error.
ClientError.swift:136var errorDescription: String? { get }
Returns
A localized string describing the client error.
This computed property provides a localized human-readable description of the client error, which is suitable for displaying to users.
Other members in extension
Type members
init(operationID: String, operationInput: any Sendable, request: HTTPRequest?, requestBody: HTTPBody?, baseURL: URL?, response: HTTPResponse?, responseBody: HTTPBody?, causeDescription: String, underlyingError: any Error
) Creates a new error.
Instance members
var baseURL: URL?
The base URL for HTTP requests.
var causeDescription: String
A user-facing description of what caused the underlying error to be thrown.
var description: String
A human-readable description of the client error.
var operationID: String
The identifier of the operation, as defined in the OpenAPI document.
var operationInput: any Sendable
The operation-specific Input value.
var request: HTTPRequest?
The HTTP request created during the operation.
var requestBody: HTTPBody?
The HTTP request body created during the operation.
var response: HTTPResponse?
The HTTP response received during the operation.
var responseBody: HTTPBody?
The HTTP response body received during the operation.
var underlyingError: any Error
The underlying error that caused the operation to fail.