Class: MissingEncryptionKey
Thrown by the Swarm class trying to retrieve an instance without having previously or currently provided an encryption key.
Extends
Constructors
Constructor
ts
new MissingEncryptionKey(): MissingEncryptionKey;Returns
MissingEncryptionKey
Overrides
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
cause? | public | unknown | - | SwarmError.cause |
stack? | public | string | - | SwarmError.stack |
prepareStackTrace? | static | (err: Error, stackTraces: CallSite[]) => any | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces | SwarmError.prepareStackTrace |
stackTraceLimit | static | number | - | SwarmError.stackTraceLimit |
Accessors
[toStringTag]
Get Signature
ts
get toStringTag: string;Returns
string
Inherited from
message
Get Signature
ts
get message(): string;Returns
string
Inherited from
name
Get Signature
ts
get name(): string;Returns
string
Inherited from
Methods
[toPrimitive]()
ts
toPrimitive: string | true;Parameters
| Parameter | Type |
|---|---|
hint | "string" | "number" | "default" |
Returns
string | true
Inherited from
toString()
ts
toString(): string;Returns a string representation of an object.
Returns
string
Inherited from
[hasInstance]()
ts
static hasInstance: boolean;Parameters
| Parameter | Type |
|---|---|
instance | unknown |
Returns
boolean
Inherited from
captureStackTrace()
ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Create .stack property on a target object
Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void