共用方式為


ErrorModel interface

定義發生的錯誤。

屬性

code

識別錯誤類別的錯誤碼。 可能的值包括:『None』、『ServerError』、『InvalidRequest』、'RateLimitExceeded'、'InvalidAuthorization'、'InsufficientAuthorization'。 默認值:『None』。

message

錯誤的描述。

moreDetails

描述,提供錯誤的其他資訊。 注意:這個屬性不會串行化。 它只能由伺服器填入。

parameter

要求中造成錯誤的 參數。 注意:這個屬性不會串行化。 它只能由伺服器填入。

subCode

進一步有助於識別錯誤的錯誤碼。 可能的值包括:'UnexpectedError'、'ResourceError'、'NotImplemented'、'ParameterMissing'、'ParameterInvalidValue'、'HttpNotAllowed'、'Blocked '、'AuthorizationMissing'、'AuthorizationRedundancy'、'AuthorizationDisabled'、'AuthorizationExpired' 注意:此屬性將不會串行化。它只能由伺服器填入。

value

要求中無效的參數值。 注意:這個屬性不會串行化。 它只能由伺服器填入。

屬性詳細資料

code

識別錯誤類別的錯誤碼。 可能的值包括:『None』、『ServerError』、『InvalidRequest』、'RateLimitExceeded'、'InvalidAuthorization'、'InsufficientAuthorization'。 默認值:『None』。

code: ErrorCode

屬性值

message

錯誤的描述。

message: string

屬性值

string

moreDetails

描述,提供錯誤的其他資訊。 注意:這個屬性不會串行化。 它只能由伺服器填入。

moreDetails?: string

屬性值

string

parameter

要求中造成錯誤的 參數。 注意:這個屬性不會串行化。 它只能由伺服器填入。

parameter?: string

屬性值

string

subCode

進一步有助於識別錯誤的錯誤碼。 可能的值包括:'UnexpectedError'、'ResourceError'、'NotImplemented'、'ParameterMissing'、'ParameterInvalidValue'、'HttpNotAllowed'、'Blocked '、'AuthorizationMissing'、'AuthorizationRedundancy'、'AuthorizationDisabled'、'AuthorizationExpired' 注意:此屬性將不會串行化。它只能由伺服器填入。

subCode?: ErrorSubCode

屬性值

value

要求中無效的參數值。 注意:這個屬性不會串行化。 它只能由伺服器填入。

value?: string

屬性值

string