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

x/rimbu/core/main/exports.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.1/core/main/exports.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