Skip to content

@nhtio/swarm/errors

Easily accessible error classes for Swarm

Classes

ClassDescription
AlreadyInitializedInContextErrorThrown by the Swarm class when trying to be initialize more than one instance within the same context.
MissingEncryptionKeyThrown by the Swarm class trying to retrieve an instance without having previously or currently provided an encryption key.
RequestTimeoutErrorThrown by the Swarm class when a request to the leader is not answered.
SwarmErrorBase class for all Swarm errors.
UnsupportedEnvironmentErrorThrown by the Swarm class when trying to be initialized in an environment that does not support Service Workers.

Interfaces

InterfaceDescription
SwarmErrorOptionsDescribes the options for the SwarmError class.