C# Class System.ComponentModel.WarningException

Inheritance: System.SystemException
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
WarningException ( ) : Microsoft.Win32

Initializes a new instance of the class with the last Win32 error that occured.

WarningException ( string message ) : Microsoft.Win32

Initializes a new instance of the class with the specified message and no Help file.

WarningException ( string message, Exception innerException ) : Microsoft.Win32

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. FxCop CA1032: Multiple constructors are required to correctly implement a custom exception.

WarningException ( string message, string helpUrl ) : Microsoft.Win32

Initializes a new instance of the class with the specified message, and with access to the specified Help file.

WarningException ( string message, string helpUrl, string helpTopic ) : Microsoft.Win32

Initializes a new instance of the class with the specified message, and with access to the specified Help file and topic.

Protected Methods

Method Description
WarningException ( SerializationInfo info, StreamingContext context ) : Microsoft.Win32

Need this constructor since Exception implements ISerializable.

Private Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Method Details

WarningException() public method

Initializes a new instance of the class with the last Win32 error that occured.

public WarningException ( ) : Microsoft.Win32
return Microsoft.Win32

WarningException() protected method

Need this constructor since Exception implements ISerializable.
protected WarningException ( SerializationInfo info, StreamingContext context ) : Microsoft.Win32
info SerializationInfo
context StreamingContext
return Microsoft.Win32

WarningException() public method

Initializes a new instance of the class with the specified message and no Help file.

public WarningException ( string message ) : Microsoft.Win32
message string
return Microsoft.Win32

WarningException() public method

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. FxCop CA1032: Multiple constructors are required to correctly implement a custom exception.
public WarningException ( string message, Exception innerException ) : Microsoft.Win32
message string
innerException System.Exception
return Microsoft.Win32

WarningException() public method

Initializes a new instance of the class with the specified message, and with access to the specified Help file.

public WarningException ( string message, string helpUrl ) : Microsoft.Win32
message string
helpUrl string
return Microsoft.Win32

WarningException() public method

Initializes a new instance of the class with the specified message, and with access to the specified Help file and topic.

public WarningException ( string message, string helpUrl, string helpTopic ) : Microsoft.Win32
message string
helpUrl string
helpTopic string
return Microsoft.Win32