CHAN.RUN
Options for defineError: a custom error code and the base class to extend.
Options for defineError: a custom error code and the base class to extend.
base?: ErrorBaseClass;Base class to extend. Defaults to Error.
code?: string;Custom code. Defaults to name.