Show / Hide Table of Contents

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 Source

RestClientErrorException()

Creates new instance of RestClientErrorException class.

Declaration
public RestClientErrorException()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

ErrorCode

Gets original error code returned by REST API endpoint.

Declaration
public Int32 ErrorCode { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

ErrorInformation

Gets extended error information if it provided by server.

Declaration
public IErrorInformation ErrorInformation { get; }
Property Value
Type Description
IErrorInformation
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX