Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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-rc.1/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.