basalt / drives/src / DriveProviderError
Class: DriveProviderError
Defined in: drives/src/errors.ts:195
A provider failure an adapter mapped but could not classify more precisely.
summary is the vendor's own taxonomy string (Dropbox's error_summary, e.g. path/not_found/…) — a fixed vocabulary, never a token, a URL or a header, so it is safe in details, which @basaltkit/http serialises into the response body and @basaltkit/audit stores.
retryable is what lets a 5xx from the provider be retried while a 4xx is not: every other error in this package is a decision, and isRetryable treats a DRIVE_ code as terminal by default.
Extends
Constructors
Constructor
> new DriveProviderError(provider, summary, providerStatus, retryable?): DriveProviderError
Defined in: drives/src/errors.ts:197
Parameters
provider
string
summary
string
providerStatus
number
retryable?
boolean = false
Returns
DriveProviderError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
details?
> readonly optional details?: Record<string, unknown>
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).
Inherited from
providerStatus
> readonly providerStatus: number
Defined in: drives/src/errors.ts:200
retryable
> readonly retryable: boolean = false
Defined in: drives/src/errors.ts:201
status
> readonly status: 502 = 502
Defined in: drives/src/errors.ts:196
summary
> readonly summary: string
Defined in: drives/src/errors.ts:199