Constructor OperationFailedException
OperationFailedException()
The default constructor of class OperationFailedException.
Declaration
public OperationFailedException()
OperationFailedException(String)
An overloaded constructor that takes the reason as parameter.
Declaration
public OperationFailedException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason of exception. |
OperationFailedException(String, Boolean)
An overloaded constructor that takes the reason and a boolean value as parameters.
Declaration
public OperationFailedException(string reason, bool isTracable)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason of exception. |
System.Boolean | isTracable | Boolean value true or false. |
OperationFailedException(String, Exception)
An overloaded constructor that takes the reason and nested exception as parameters.
Declaration
public OperationFailedException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason of exception. |
System.Exception | inner | Nested exception. |
OperationFailedException(String, Exception, Boolean)
An overloaded constructor that takes the reason, nested exception and a boolean value as parameters.
Declaration
public OperationFailedException(string reason, Exception inner, bool isTracable)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | Reason of exception. |
System.Exception | inner | Nested exception. |
System.Boolean | isTracable | Bollean value true or false. |
OperationFailedException(Int32)
An overloaded constructor that takes the errorcode as parameter.
Declaration
public OperationFailedException(int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned ErrorCode. |
OperationFailedException(Int32, String)
An overloaded constructor that takes the errorcode and exception message as parameters.
Declaration
public OperationFailedException(int errorCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned ErrorCode. |
System.String | reason | Exception message. |
OperationFailedException(Int32, String, Boolean)
An overloaded constructor that takes the errorcode, exception message and a boolean value as parameters.
Declaration
public OperationFailedException(int errorCode, string reason, bool isTracable)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Exception message. |
System.Boolean | isTracable | Boolean value true or false. |
OperationFailedException(Int32, String, Exception)
An overloaded constructor that takes the errorcode, exception message and nested exception as parameters.
Declaration
public OperationFailedException(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. |
OperationFailedException(Int32, String, Exception, Boolean)
An overloaded constructor that takes the errorcode, exception message,nested exception and a boolean value as parameters.
Declaration
public OperationFailedException(int errorCode, string reason, Exception inner, bool isTracable)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Exception message. |
System.Exception | inner | Nested exception. |
System.Boolean | isTracable | Boolean value true or false. |
OperationFailedException(Int32, String, String)
An overloaded constructor that takes the errorcode, exception message and stacktrace as parameters.
Declaration
public OperationFailedException(int errorCode, string reason, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Exception message. |
System.String | stackTrace | A string representation of the immediate frames on the call stack. |
OperationFailedException(Int32, String, Boolean, String)
An overloaded constructor that takes the errorcode, exception message, stacktrace and a boolean value as parameters.
Declaration
public OperationFailedException(int errorCode, string reason, bool isTracable, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | Assigned errorcode. |
System.String | reason | Exception message. |
System.Boolean | isTracable | Boolean value true or false. |
System.String | stackTrace | A string representation of the immediate frames on the call stack. |
OperationFailedException(SerializationInfo, StreamingContext)
An overloaded constructor that takes the serialization info and streaming context as parameters.
Declaration
protected OperationFailedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Stores all the data needed to serialize or deserialize an object. |
System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. |