API Reference

CustomErrorclass

Base error class used by rs-x exceptions to set a stable custom error name.

Quick facts
Kind
class
Base class
Error
Members
1
Package
@rs-x/core

Import

import { CustomError } from '@rs-x/core';

Example

import { CustomError } from '@rs-x/core';

const instance = new CustomError(...args);

Members

1 member in this class.

constructor
constructorpublic
constructor(
  message: string,
  name?: string
)

Parameters

Name
Type
Required
message
string
required
name?
string
optional