• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Show / Hide Table of Contents

Constructor OperationFailedException

OperationFailedException()

Default constructor.

Declaration
public OperationFailedException()

OperationFailedException(String)

Overloaded constructor, takes the reason as parameter.

Declaration
public OperationFailedException(string reason)
Parameters
Type Name Description
System.String reason

OperationFailedException(String, Boolean)

Overloaded constructor, takes the reason as parameter.

Declaration
public OperationFailedException(string reason, bool isTracable)
Parameters
Type Name Description
System.String reason
System.Boolean isTracable

OperationFailedException(String, Exception)

Overloaded constructor.

Declaration
public OperationFailedException(string reason, Exception inner)
Parameters
Type Name Description
System.String reason

Reason for exception

Exception inner

Nested exception

OperationFailedException(String, Exception, Boolean)

Overloaded constructor.

Declaration
public OperationFailedException(string reason, Exception inner, bool isTracable)
Parameters
Type Name Description
System.String reason

Reason for exception

Exception inner

Nested exception

System.Boolean isTracable

OperationFailedException(Int32)

Overloaded Constructor

Declaration
public OperationFailedException(int errorCode)
Parameters
Type Name Description
System.Int32 errorCode

Assigned ErrorCode

OperationFailedException(Int32, String)

Overloaded Constructor

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)

Overloaded Constructor

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

OperationFailedException(Int32, String, Exception)

Overloaded constructor

Declaration
public OperationFailedException(int errorCode, string reason, Exception inner)
Parameters
Type Name Description
System.Int32 errorCode

Assigned errorcode

System.String reason

Exception message

Exception inner

Nested Exception

OperationFailedException(Int32, String, Exception, Boolean)

Overloaded constructor

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

Exception inner

Nested exception

System.Boolean isTracable

OperationFailedException(Int32, String, String)

Overloaded Constructor

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

stacktrace

OperationFailedException(Int32, String, Boolean, String)

Overloaded constructor

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
System.String stackTrace

stacktrace

OperationFailedException(SerializationInfo, StreamingContext)

Overloaded constructor, manual serialization.

Declaration
protected OperationFailedException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context
Back to top Copyright © 2017 Alachisoft