import { Source } from "./Source"; /** * Generic and versatile error abstraction * * @class */ export declare class Error { private readonly _source; private readonly _message; private readonly _location; /** * @param message {string} The error message * @param source {Source} The source where the error happened * @param location {*} The location in the source where the error happened */ constructor(message: string, source: Source, location: any); /** * Returns the source where the error happened. */ readonly source: Source; /** * Returns the error message. */ readonly message: string; /** * Returns the location in the source where the error happened. */ readonly location: any; }