eConnectException Class


The eConnectException class allows you to catch and handle eConnect-specific errors. If an error occurs that originates with business objects or framework, eConnect throws an eConnectException object. You can use the properties of the eConnectException object to identify the type of error and its accompanying error message.

The eConnectException class inherits from the System.ApplicationException class. eConnectException uses the properties of the parent class. Refer to the .NET Framework documentation for information about the System.ApplicationException class.

Constructor

Initializes a new instance of the eConnectException class.

[spacer]

Name

Description

eConnectException()

Create a new eConnect exception.

eConnectException(string errMessage)

Creates an eConnect exception with the specified error message.

ConnectException(string errMessage, System.Exception systemException)

Creates an eConnect exception with a specified error message and a reference to an inner exception.

eConnectException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StriamingContext context)

Creates an eConnect exception using serialized exception information.


Parameters

[spacer]

Name

Data type

Description

errMessage

string

Specifies the error message for the exception.

systemException

System.Exception

Specifies the inner exception that was caught.

info

System.Runtime.Serialization.SerializationInfo

Specifies a serialized instance of an exception.

context

System.Runtime.Serialization.StreamingContext

Specifies the source of a serialized stream.


Properties

[spacer]

Name

Type

Default

Description

MaxReadQuotaSize

int

2147483647

Specifies the maximum size of the for read messages. The default value is the largest possible value.

MaxReceivedMessageSize

int

2147483647

Specifies the maximum size of an XML document. The default value is the largest possible value.

ProcTimeOut

int

600

Specifies the number of seconds to wait before a time out occurs

RequireProxyService

bool

true

Specifies whether to use the identify of the logged on user or the service identity when accessing SQL server. The value true forces the application to use the service identity.

SendTimeout

System.Timespan

60 minutes

Specifies the length of time to wait when connecting to the eConnect Integration Service. Used when the RequiredProxyService is set to true.

ServiceAddress

String

net.pipe://localhost/Microsoft/Dynamics/GP/eConnect/

Specifies the URL of the eConnect Integration Service.

ServiceOperationTimeout

System.Timespan

60 minutes

Specifies the length of time to wait for an operation to complete. Used when the RequiredProxyService is set to true.

TransactionIsolationLevel

System.Transaction.IsolationLevel

ReadUncommitted

Specifies the isolation level of the transaction.

TransactionTimeoutSeconds

System.Timespan

60 minutes

Specifies the length of time to wait for a SQL trnsacttion to complete.



Documentation Feedback