class Exception
Represents errors that occur during application execution.
public Exception( string message )
Initializes a new instance of the class with a specified error message.
messageThe message that describes the error.
public Exception( string message, Exception innerException )
Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
messageThe error message that explains the reason for the exception.innerExceptionThe exception that is the cause of the current exception, or a null reference ( in Visual Basic) if no inner exception is specified.
public IDictionary Data { get; }
Gets a collection of key/value pairs that provide additional user-defined information about the exception.
- Returns An object that implements the interface and contains a collection of user-defined key/value pairs. The default is an empty collection.
public void GetObjectData( SerializationInfo info, StreamingContext context )
When overridden in a derived class, sets the with information about the exception.
infoThe that holds the serialized object data about the exception being thrown.contextThe that contains contextual information about the source or destination.
public string HelpLink { get; set; }
Gets or sets a link to the help file associated with this exception.
- Returns The Uniform Resource Name (URN) or Uniform Resource Locator (URL).
public int HResult { get; set; }
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
- Returns The HRESULT value.
public Exception InnerException { get; }
Gets the instance that caused the current exception.
- Returns An object that describes the error that caused the current exception. The property returns the same value as was passed into the constructor, or if the inner exception value was not supplied to the constructor. This property is read-only.
public string Message { get; }
Gets a message that describes the current exception.
- Returns The error message that explains the reason for the exception, or an empty string ("").
public string Source { get; set; }
Gets or sets the name of the application or the object that causes the error.
- Returns The name of the application or the object that causes the error.
public string StackTrace { get; }
Gets a string representation of the immediate frames on the call stack.
- Returns A string that describes the immediate frames of the call stack.
public string ToString( )
😔 No documentation found.
public Exception GetBaseException( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public Exception( )
😔 No documentation found.