Show / Hide Table of Contents

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 Source

ErrorModel()

Declaration
public ErrorModel()
View Source

ErrorModel(String, String)

Declaration
public ErrorModel(string errorCode, string expando)
Parameters
Type Name Description
System.String errorCode
System.String expando

Properties

View Source

ErrorCode

錯誤代碼

Declaration
public string ErrorCode { get; set; }
Property Value
Type Description
System.String
View Source

ErrorExpando

錯誤訊息,或多重錯誤物件

Declaration
public IList<ErrorEx> ErrorExpando { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<ErrorEx>
View Source

TraceId

追蹤 ID

Declaration
public string TraceId { get; set; }
Property Value
Type Description
System.String

Methods

View Source

EqualErrorCode(ErrorModel)

比對兩個錯誤物件是否相同 (排除 TraceId)

Declaration
public bool EqualErrorCode(ErrorModel otherModel)
Parameters
Type Name Description
ErrorModel otherModel
Returns
Type Description
System.Boolean
  • View Source
In This Article
Back to top Generated by DocFX