System.Exception

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
namespace System
public class Exception

The Exception class is used for structured exception handling and represents the errors that occur.

Constructors

Exception

public Exception()

Initializes a new instance of the Exception class.

or

public Exception(message)

Initializes a new instance of the Exception class with an error message (string) that explains why the error occured.

or

public Exception(message, inner)

Initializes a new instance of the Exception class with an error message (string) that explains why the error occurred and an inner exception (@Exception) that caused the current exception.

Properties

Exception.InnerException

public InnerException

Returns the exception instance that caused the current exception. (@Exception)

Exception.Message

public virtual Message

Returns the error message that describes the exception. (string)

Exception.Source

public virtual Source

Returns or sets the name of the application that caused the exception. (string)

Exception.StackTrace

public virtual StackTrace

Returns a text representation of the call stack at the time the exception was thrown. (string)

Methods

Exception.ToString

public override ToString(), string

Returns the string representation of the current exception. This includes the following components, separated by the system line terminator: