Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / storage / UnsupportedOperationError

Class: UnsupportedOperationError

Defined in: storage/errors.ts:58

Thrown when a driver is asked for something its backend cannot do.

The contract is one API over very different backends, and a couple of operations only make sense on some of them — appending to an object in S3 means rewriting the whole object. Refusing loudly beats emulating badly.

Extends

Constructors

Constructor

new UnsupportedOperationError(operation, driver): UnsupportedOperationError

Defined in: storage/errors.ts:59

Parameters

operation

string

driver

string

Returns

UnsupportedOperationError

Overrides

StorageError.constructor

Properties

code

readonly code: string

Defined in: errors/ZerotalError.ts:18

Inherited from

StorageError.code


status

readonly status: number = 500

Defined in: errors/ZerotalError.ts:19

Inherited from

StorageError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: errors/ZerotalError.ts:20

Inherited from

StorageError.context