Quickstart
On This Page
Start to use itPermalink for this section
InstallPermalink for this section
In your project directory, run the following command to install the dependency:
pnpm i @visulima/error
Ready to Go!Permalink for this section
In this Example we will extend the VisulimaError class to create a custom error
import { VisulimaError } from "@visulima/error";class CustomError extends VisulimaError { public constructor(message: string) { super({ name: "CustomError" message }); }}throw new CustomError("This is a custom error");