UNPKG

hunter-news-exceptions

Version:

Contains exceptions defition for Hunter News Social Network

14 lines (13 loc) 636 B
export declare class BaseException { message: string; private childExceptions; constructor(message: string, innerException?: Error | BaseException); /** Agrega una nueva linea para imprimir un error */ private newLine(index); /** Agrega un nuevo error hijo. Útil cuando se generan varios errores de igual jerarquía */ pushChildException(exception: Error | BaseException): void; /** Deprecated. Será eliminado en las próximas versiones. No utilizar */ print(index?: number): string; /** Retorna un texto con el error y los errores hijos */ toString(index?: number): string; }