UNPKG

anux-common

Version:

[![Build Status](https://travis-ci.com/Anupheaus/anux-common.svg?branch=master)](https://travis-ci.com/Anupheaus/anux-common) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/dd0e0bd3a96247a5a78c02a812f949f8)](https://www.codacy.com/app/Anuphea

24 lines (23 loc) 587 B
interface IConfig { name?: string; message: string; code?: number; info?: object; internalError?: Error; } export declare class BaseError extends Error { protected constructor(config: IConfig, self: Function); name: string; code: number; info: object | undefined; internalError: Error | undefined; protected toJSON(): { name: string; message: string; code: number; info: string | undefined; internalError: Error | undefined; stack: string | undefined; }; } export {};