Skip to content
Documentation
Packages
error
Quickstart

Quickstart

Start to use it
Permalink for this section

Install
Permalink 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");