UNPKG

net-exceptions

Version:

Provides lightweight versions of the most important exceptions from Microsoft's .NET

44 lines (43 loc) 1.43 kB
/** * Represents errors that occur during application execution. */ export declare class Exception extends Error { /** * A collection of key/value pairs that provide additional user-defined information about the exception. */ private data; /** * The Exception instance that caused the current exception. */ private innerException; /** * Initializes a new instance of the `Exception` class. * * @param message * A message that describes the current exception. * * @param innerException * The Exception instance that caused the current exception. */ constructor(message?: string, innerException?: Exception); /** * Gets a collection of key/value pairs that provide additional user-defined information about the exception. */ readonly Data: any[]; /** * Gets the Exception instance that caused the current exception. */ readonly InnerException: Exception; /** * Gets a message that describes the current exception. */ readonly Message: string; /** * Gets a string representation of the immediate frames on the call stack. */ readonly StackTrace: string; /** * When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. */ GetBaseException(): Exception; }