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

x/rimbu/core/main/index.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.13.5/core/main/index.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