@nhtio/swarm/errors
Easily accessible error classes for Swarm
Classes
| Class | Description |
|---|---|
| AlreadyInitializedInContextError | Thrown by the Swarm class when trying to be initialize more than one instance within the same context. |
| MissingEncryptionKey | Thrown by the Swarm class trying to retrieve an instance without having previously or currently provided an encryption key. |
| RequestTimeoutError | Thrown by the Swarm class when a request to the leader is not answered. |
| SwarmError | Base class for all Swarm errors. |
| UnsupportedEnvironmentError | Thrown by the Swarm class when trying to be initialized in an environment that does not support Service Workers. |
Interfaces
| Interface | Description |
|---|---|
| SwarmErrorOptions | Describes the options for the SwarmError class. |