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
Properties
code
readonlycode:string
Defined in: errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: errors/ZerotalError.ts:20