Class ErrorModel
API 錯誤回應格式物件
Inheritance
System.Object
ErrorModel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ede.Uofx.OpenApi.Sdk.NetStd
Assembly: Ede.Uofx.OpenApi.Sdk.NetStd.dll
Syntax
public class ErrorModel
Constructors
View SourceErrorModel()
Declaration
public ErrorModel()
ErrorModel(String, String)
Declaration
public ErrorModel(string errorCode, string expando)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | errorCode | |
| System.String | expando |
Properties
View SourceErrorCode
錯誤代碼
Declaration
public string ErrorCode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ErrorExpando
錯誤訊息,或多重錯誤物件
Declaration
public IList<ErrorEx> ErrorExpando { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<ErrorEx> |
TraceId
追蹤 ID
Declaration
public string TraceId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
View SourceEqualErrorCode(ErrorModel)
比對兩個錯誤物件是否相同 (排除 TraceId)
Declaration
public bool EqualErrorCode(ErrorModel otherModel)
Parameters
| Type | Name | Description |
|---|---|---|
| ErrorModel | otherModel |
Returns
| Type | Description |
|---|---|
| System.Boolean |