Constructor MaintenanceException
MaintenanceException()
default constructor.
Declaration
public MaintenanceException()
MaintenanceException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public MaintenanceException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
MaintenanceException(String, Exception)
overloaded constructor.
Declaration
public MaintenanceException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | reason for exception |
System.Exception | inner | nested exception |
MaintenanceException(Int32)
Overloaded constructor
Declaration
public MaintenanceException(int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned ErrorCode |
MaintenanceException(Int32, String)
Overloaded constructor
Declaration
public MaintenanceException(int errorCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned ErrorCode |
System.String | reason | Excption message |
MaintenanceException(Int32, String, String)
Overloaded constructor
Declaration
public MaintenanceException(int errorCode, string reason, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned ErrorCode |
System.String | reason | Exception message |
System.String | stackTrace | stacktrace |
MaintenanceException(Int32, String, Exception)
Overloaded Constructor
Declaration
public MaintenanceException(int errorCode, string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned Errorcode |
System.String | reason | Exception message |
System.Exception | inner | nested exception |
MaintenanceException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
protected MaintenanceException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |