basalt / drives/src / DriveAccessDeniedError
Class: DriveAccessDeniedError
Defined in: drives/src/errors.ts:164
The grant is healthy, but the provider refused this object or operation.
Distinct from DriveCredentialsInvalidError on purpose, and the distinction was forced by the first real adapter: Dropbox answers 403 access_denied for a team-policy or missing-scope refusal while the token is perfectly valid. Folding that into "reconnect your account" would tell a tenant to re-consent forever over something re-consenting cannot fix.
Extends
Constructors
Constructor
> new DriveAccessDeniedError(provider, reason): DriveAccessDeniedError
Defined in: drives/src/errors.ts:166
Parameters
provider
string
reason
string
Returns
DriveAccessDeniedError
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
status
> readonly status: 403 = 403
Defined in: drives/src/errors.ts:165