Show / Hide Table of Contents

    Class ErrorResponse

    Error Response.

    Inheritance
    Object
    ErrorResponse
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.ApiManagement.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class ErrorResponse

    Constructors

    ErrorResponse()

    Initializes a new instance of the ErrorResponse class.

    Declaration
    public ErrorResponse ();

    ErrorResponse(String, String, IList<ErrorFieldContract>)

    Initializes a new instance of the ErrorResponse class.

    Declaration
    public ErrorResponse (string code = null, string message = null, System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.ErrorFieldContract> details = null);
    Parameters
    String code

    Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.

    String message

    Human-readable representation of the error.

    IList<ErrorFieldContract> details

    The list of invalid fields send in request, in case of validation error.

    Properties

    Code

    Gets or sets service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="error.code")]
    public string Code { get; set; }
    Property Value
    String

    Details

    Gets or sets the list of invalid fields send in request, in case of validation error.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="error.details")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.ErrorFieldContract> Details { get; set; }
    Property Value
    IList<ErrorFieldContract>

    Message

    Gets or sets human-readable representation of the error.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="error.message")]
    public string Message { get; set; }
    Property Value
    String

    Back to top Azure SDK for Net