Constructor MetricsException
MetricsException()
Declaration
public MetricsException()
MetricsException(String)
Overloaded constructor, takes the reason as parameter.
Declaration
public MetricsException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
MetricsException(String, Exception)
Overloaded constructor.
Declaration
public MetricsException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason for exception |
System.Exception | inner | Nested exception |
MetricsException(Int32)
Overloaded constructor
Declaration
public MetricsException(int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode |
MetricsException(Int32, String)
Overloaded constructor
Declaration
public MetricsException(int errorCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode |
System.String | reason | exception message |
MetricsException(Int32, String, String)
Overloaded Constructor
Declaration
public MetricsException(int errorCode, string reason, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode |
System.String | reason | exception message |
System.String | stackTrace | stacktrace |
MetricsException(Int32, String, Exception)
Overloaded Constructor
Declaration
public MetricsException(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 |
MetricsException(SerializationInfo, StreamingContext)
Overloaded constructor, manual serialization.
Declaration
protected MetricsException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |