Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/util/errors.ts

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
import * as earthstar from "https://deno.land/x/earthstar@v10.0.0/src/util/errors.ts";

Classes

A server won't accept writes

Generic top-level error class that other Earthstar errors inherit from.

A server URL is bad or the network is down

An IReplica or IReplicaDriver was used after close() was called on it.

An IReplica or IReplicaDriver was used after close() was called on it.

Validation failed on a document, share address, author address, etc.

Functions

Check if any value is a subclass of EarthstarError (return true) or not (return false)

Check if any value is a subclass of EarthstarError (return false) or not (return true)