Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rhum/src/interfaces.ts>IError

A test double library
Go to Latest
interface IError
import { type IError } from "https://deno.land/x/rhum@v2.1.0/src/interfaces.ts";

Interface that all errors must follow. This is useful when a client wants to throw a custom error class via .willThrow() for mocks and fakes.

Properties

name: string

The name of the error (shown before the error message when thrown). Example: ErrorName: <error message goes here>.

optional
message: string

The error message.