ExceptionHandlingScope 成员
Ignores an exception that is raised by the server, or executes code in response to an exception that is thrown by the server.
ExceptionHandlingScope 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
ExceptionHandlingScope | Initializes a new instance of the ExceptionHandlingScope class with the specified client runtime context. |
页首
属性
名称 | 说明 | |
---|---|---|
ErrorMessage | Gets the error message of the exception when the code is executed in the try scope. | |
HasException | Gets the flag that indicates whether an exception has occurred in the try scope. | |
Processed | Gets the flag that indicates whether the scope has been processed by the server. | |
ServerErrorCode | Gets the error code that corresponds to the exception that occurred in the try scope. | |
ServerErrorDetails | Gets the details of the exception. | |
ServerErrorTypeName | Gets the type name, such as System.ArgumentException, of the exception. | |
ServerErrorValue | Gets the error value that corresponds to the exception that occurs in the try scope. | |
ServerStackTrace | Gets the server call stack information of the exception in the try scope. |
页首
方法
名称 | 说明 | |
---|---|---|
StartCatch | Initiates the start of a custom code block that is to be executed on the client when the server throws an exception. | |
StartFinally | Initiates the start of a custom code block that is to be executed on the client after all StartCatch() code blocks have been executed. | |
StartScope | Initiates a code block that contains calls to the StartTry(), StartCatch(), and StartFinally() methods. | |
StartTry | Initiates a code block that might throw server exceptions. | |
ToString | (从 Object 继承。) |
页首
显式 接口 实现
名称 | 说明 | |
---|---|---|
IFromJson.CustomFromJson | Indicates whether custom code is used to initialize the ExceptionHandlingScope class. | |
IFromJson.FromJson | Initializes the object with the response that comes from the server. |
页首