Class RestClientErrorException
Represents Alpaca REST and Streaming API specific error information.
Inheritance
System.Object
RestClientErrorException
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class RestClientErrorException : Exception
Constructors
| Improve this Doc View SourceRestClientErrorException()
Creates new instance of RestClientErrorException class.
Declaration
public RestClientErrorException()
RestClientErrorException(String)
Creates new instance of RestClientErrorException class with specified error message.
Declaration
public RestClientErrorException(String message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | The message that describes the error. |
RestClientErrorException(String, Exception)
Creates new instance of RestClientErrorException class with specified error message and reference to the inner exception that is the cause of this exception.
Declaration
public RestClientErrorException(String message, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | The message that describes the error. |
| Exception | inner | The exception that is the cause of this exception. |
Properties
| Improve this Doc View SourceErrorCode
Gets original error code returned by REST API endpoint.
Declaration
public Int32 ErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ErrorInformation
Gets extended error information if it provided by server.
Declaration
public IErrorInformation ErrorInformation { get; }
Property Value
| Type | Description |
|---|---|
| IErrorInformation |
HttpStatusCode
Gets original HTTP status code returned by REST API endpoint.
Declaration
public HttpStatusCode? HttpStatusCode { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Net.HttpStatusCode> |