Class ServerError
Assembly: OpenSearch.Net.dll
Syntax
[DataContract]
public class ServerError
Constructors
|
Edit this page
View Source
ServerError()
Declaration
|
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
|
Edit this page
View Source
Status
Declaration
[DataMember(Name = "status")]
public int Status { get; }
Property Value
Methods
|
Edit this page
View Source
Create(Stream)
Declaration
public static ServerError Create(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
|
Edit this page
View Source
CreateAsync(Stream, CancellationToken)
Declaration
public static Task<ServerError> CreateAsync(Stream stream, CancellationToken token = default)
Parameters
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Edit this page
View Source
TryCreate(Stream, out ServerError)
Declaration
public static bool TryCreate(Stream stream, out ServerError serverError)
Parameters
Returns
Extension Methods