Error Class

Definition

针对请求处理期间发生的错误的信息容器。An information container for an error that occurred during the processing of a request.

public ref class Error : Microsoft::MasterDataServices::Services::DataContracts::DataContractBase
[System.Runtime.Serialization.DataContract(Name="Error", Namespace="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")]
public class Error : Microsoft.MasterDataServices.Services.DataContracts.DataContractBase
type Error = class
    inherit DataContractBase
Public Class Error
Inherits DataContractBase
Inheritance
Attributes

Remarks

Error复杂类型为处理请求期间发生的错误指定信息容器。The Error complex type specifies an information container for an error that occurred during the processing of a request.

Constructors

Error()

默认构造函数Default constructor

Properties

Code

指定错误代码。Specifies the error code.

Context

指定错误的对象上下文(如果适用)。Specifies the object context of the error if applicable.

Description

指定描述错误的文本。Specifies the text describing the error.

Number

指定错误号。Specifies the error number.

Methods

SetProperty<T>(T, T, String)

将属性更改为给定的值。Changes the property to the given value.
返回新值是否不同于旧值。Returns whether the new value is different from the old value.

(Inherited from DataContractBase)
SetProperty<T>(T, T, String, Boolean)

将属性更改为给定的值。Changes the property to the given value.
返回新值是否不同于旧值。Returns whether the new value is different from the old value.

(Inherited from DataContractBase)
ToString()

生成错误的格式化跟踪消息。Generates a formatted trace message for the error.

Applies to