Skip to main content
Module

x/rimbu/mod.ts>Err

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Err
import { Err } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

Throws an Err.ForcedError error when called.

Examples

Example 1

const emptyMap = HashMap.empty<number, string>()
emptyMap.get(5, Err);
// throws: Err.CustomError(message: 'Err: forced to throw error')

Returns

never