Share via


Error Constructors

Definition

Overloads

Error()

Initializes a new instance of the Error class.

Error(String, String, String, String, String, String)

Initializes a new instance of the Error class.

Error()

Initializes a new instance of the Error class.

public Error ();
Public Sub New ()

Applies to

Error(String, String, String, String, String, String)

Initializes a new instance of the Error class.

public Error (string code, string message, string subCode = default, string moreDetails = default, string parameter = default, string value = default);
new Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.Error : string * string * string * string * string * string -> Microsoft.Azure.CognitiveServices.Search.ImageSearch.Models.Error
Public Sub New (code As String, message As String, Optional subCode As String = Nothing, Optional moreDetails As String = Nothing, Optional parameter As String = Nothing, Optional value As String = Nothing)

Parameters

code
String

The error code that identifies the category of error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'

message
String

A description of the error.

subCode
String

The error code that further helps to identify the error. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired'

moreDetails
String

A description that provides additional information about the error.

parameter
String

The parameter in the request that caused the error.

value
String

The parameter's value in the request that was not valid.

Applies to