다음을 통해 공유


AgentExceptionHandlerResult Enumeration

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Describes the result of an attempt to handle an exception raised from a Web service call.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Enumeration AgentExceptionHandlerResult
'Usage
Dim instance As AgentExceptionHandlerResult
public enum AgentExceptionHandlerResult
public enum class AgentExceptionHandlerResult
public enum AgentExceptionHandlerResult

Members

Member name Description
NotHandled The exception was not handled. The caller should attempt to handle the exception itself or else rethrow the exception for a handler further up the stack to handle.
AbortOperation The exception was handled and it was determined that the current operation should be aborted. For example, if there is an authentication failure and the ServiceAgent determines that alternate credentials cannot be supplied, it returns this value.
RetryOperation The exception was handled successfully and it was determined that the current operation should be retried. For example, if there is an authentication failure and the ServiceAgent is able to provide alternate credentials, then it returns this value.

Remarks

This enumeration is used as the return value of two Agent-related methods: TryHandleWebMethodException and HandleAuthException. The return value signifies whether the exception was handled or not and whether the system should proceed or abort the current operation.

See Also

Reference

Microsoft.CommerceServer Namespace