import { ErrorBase } from './ErrorBase'; /** * Custom implementation of Error for reporting a message and the causing Error. */ export declare class NestedError extends ErrorBase { /** * Gets the error that caused this error (or null if no inner error was specified). */ readonly innerError: Error | null; /** * Initializes a new instance of the [[NestedError]] class. * @param message A description of the error. * @param innerError The error that caused the [[NestedError]]. */ constructor(message: string, innerError?: Error | null); /** * Creates a string representation of this error. * @returns A string representation of this error. */ toString(): string; }