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.CustomSearch.Models.Error : string * string * string * string * string * string -> Microsoft.Azure.CognitiveServices.Search.CustomSearch.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
System.String

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

message
System.String

A description of the error.

subCode
System.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
System.String

A description that provides additional information about the error.

parameter
System.String

The parameter in the request that caused the error.

value
System.String

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

Applies to