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-beta.7/src/util/errors.ts";

Classes

A pub won't accept writes

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

A pub URL is bad or the network is down

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

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)