@types/verror

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

Install

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

Overview

TypeScript definitions for verror

Index

Classes

class MultiError

class MultiError extends VError {}

    constructor

    constructor(errors: Error[]);

      method errors

      errors: () => Error[];

        class SError

        class SError extends VError {}

          class VError

          class VError extends Error {}

            constructor

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

              constructor

              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 {}

                                  Interfaces

                                  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.

                                                  Badge

                                                  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
                                                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/verror)
                                                  • 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>