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.

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

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

Name

Type

Description

InnerException

System.Exception

Specifies the inner exception that is associated with the exception.

Message

string

Specifies the error message for the exception

Source

string

Specifies the source of the exception

StackTrace

string

Specifies the stack trace at the time of the exception.