/** * Represents errors that occur during application execution. */ export default class Exception extends Error { #private; __proto__: Error; /** * Creates a new Exception */ constructor(); /** * Creates a new Exception with a message * @param message the message */ constructor(message: string); /** * Creates a new Exception with a message and an inner exception * @param message the message * @param innerException this is used to capture any exceptions that were * called before this exception. */ constructor(message: string | undefined, innerException: Exception); /** Gets the Exception instance that caused the current exception. */ get innerException(): Exception | undefined; static isException(error: unknown | Error | Exception): error is Exception; }