ExceptionProcessing Enum

Definition

Enumerates the exception handling behaviors that are built into the JsonRpc class.

public enum ExceptionProcessing
type ExceptionProcessing = 
Public Enum ExceptionProcessing
Inheritance
ExceptionProcessing

Fields

CommonErrorData 0

Exceptions thrown by the server are serialized as the simple CommonErrorData class and the default error code is InvocationError. The client experiences a RemoteInvocationException whose DeserializedErrorData property is the deserialized CommonErrorData.

ISerializable 1

Exceptions thrown by the server are serialized via the ISerializable mechanism and captures more detail, using the error code InvocationErrorWithException. These are deserialized with the original exception types as inner exceptions of the RemoteInvocationException thrown at the client. The DeserializedErrorData is also set to an instance of CommonErrorData that resembles the inner exception tree.

Applies to

See also