Search Results for

    Show / Hide Table of Contents

    Class ServerError

    Inheritance
    object
    ServerError
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Net
    Assembly: OpenSearch.Net.dll
    Syntax
    [DataContract]
    public class ServerError

    Constructors

    | Edit this page View Source

    ServerError()

    Declaration
    public ServerError()
    | Edit this page View Source

    ServerError(Error, int?)

    Declaration
    public ServerError(Error error, int? statusCode)
    Parameters
    Type Name Description
    Error error
    int? statusCode

    Properties

    | Edit this page View Source

    Error

    Declaration
    [DataMember(Name = "error")]
    public Error Error { get; }
    Property Value
    Type Description
    Error
    | Edit this page View Source

    Status

    Declaration
    [DataMember(Name = "status")]
    public int Status { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Create(Stream)

    Declaration
    public static ServerError Create(Stream stream)
    Parameters
    Type Name Description
    Stream stream
    Returns
    Type Description
    ServerError
    | Edit this page View Source

    CreateAsync(Stream, CancellationToken)

    Declaration
    public static Task<ServerError> CreateAsync(Stream stream, CancellationToken token = default)
    Parameters
    Type Name Description
    Stream stream
    CancellationToken token
    Returns
    Type Description
    Task<ServerError>
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    | Edit this page View Source

    TryCreate(Stream, out ServerError)

    Declaration
    public static bool TryCreate(Stream stream, out ServerError serverError)
    Parameters
    Type Name Description
    Stream stream
    ServerError serverError
    Returns
    Type Description
    bool

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • ServerError()
      • ServerError(Error, int?)
    • Properties
      • Error
      • Status
    • Methods
      • Create(Stream)
      • CreateAsync(Stream, CancellationToken)
      • ToString()
      • TryCreate(Stream, out ServerError)
    • Extension Methods
    Back to top Generated by DocFX