• Version 1.10.5
  • Published
  • 5.42 kB
  • No dependencies
  • MIT license


npm i @types/verror
yarn add @types/verror
pnpm add @types/verror


TypeScript definitions for verror



class MultiError

class MultiError extends VError {}


    constructor(errors: Error[]);

      method errors

      errors: () => Error[];

        class SError

        class SError extends VError {}

          class VError

          class VError extends Error {}


            constructor(options: Error | VError.Options, message: string, ...params: any[]);


              constructor(message?: string, ...params: any[]);

                property VError

                static VError: typeof VError;

                  method cause

                  static cause: (err: Error) => Error | null;

                    method errorForEach

                    static errorForEach: (err: Error, func: (err: Error) => void) => void;

                      method errorFromList

                      static errorFromList: <T extends Error>(
                      errors: T[]
                      ) => null | T | VError.MultiError;

                        method findCauseByName

                        static findCauseByName: (err: Error, name: string) => Error | null;

                          method fullStack

                          static fullStack: (err: Error) => string;

                            method hasCauseWithName

                            static hasCauseWithName: (err: Error, name: string) => boolean;

                              method info

                              static info: (err: Error) => VError.Info;

                                class WError

                                class WError extends VError {}


                                  interface Info

                                  interface Info {}

                                    index signature

                                    [key: string]: any;

                                      interface Options

                                      interface Options {}

                                        property cause

                                        cause?: Error | null | undefined;

                                          property info

                                          info?: Info | undefined;

                                            property name

                                            name?: string | undefined;

                                              property strict

                                              strict?: boolean | undefined;

                                                method constructorOpt

                                                constructorOpt: (...args: any[]) => void;

                                                  Package Files (1)

                                                  Dependencies (0)

                                                  No dependencies.

                                                  Dev Dependencies (0)

                                                  No dev dependencies.

                                                  Peer Dependencies (0)

                                                  No peer dependencies.


                                                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/verror.

                                                  • Markdown
                                                  • HTML
                                                    <a href="https://www.jsdocs.io/package/@types/verror"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>