ProtoErrorRes

StockSharp.cTrader.Native.Model

* Error response that is sent from Open API proxy when error occurs.

Implements: IMessage<ProtoErrorRes>, IMessage, IEquatable<ProtoErrorRes>, IDeepCloneable<ProtoErrorRes>, IBufferMessage

Properties

Description
public string Description { get; set; }
value = protoErrorRes.Description
protoErrorRes.Description = value

Error description.

ErrorCode
public string ErrorCode { get; set; }
value = protoErrorRes.ErrorCode
protoErrorRes.ErrorCode = value

Contains name of ProtoErrorCode or other custom ErrorCodes (e.g. ProtoCHErrorCode).

HasDescription
public bool HasDescription { get; }
value = protoErrorRes.HasDescription

Gets whether the "description" field is set

HasErrorCode
public bool HasErrorCode { get; }
value = protoErrorRes.HasErrorCode

Gets whether the "errorCode" field is set

HasMaintenanceEndTimestamp
public bool HasMaintenanceEndTimestamp { get; }
value = protoErrorRes.HasMaintenanceEndTimestamp

Gets whether the "maintenanceEndTimestamp" field is set

HasPayloadType
public bool HasPayloadType { get; }
value = protoErrorRes.HasPayloadType

Gets whether the "payloadType" field is set

MaintenanceEndTimestamp
public ulong MaintenanceEndTimestamp { get; set; }
value = protoErrorRes.MaintenanceEndTimestamp
protoErrorRes.MaintenanceEndTimestamp = value

The Unix time in milliseconds of the end of the maintenance.

Methods

ClearDescription
public void ClearDescription()
protoErrorRes.ClearDescription()

Clears the value of the "description" field

ClearErrorCode
public void ClearErrorCode()
protoErrorRes.ClearErrorCode()

Clears the value of the "errorCode" field

ClearMaintenanceEndTimestamp
public void ClearMaintenanceEndTimestamp()
protoErrorRes.ClearMaintenanceEndTimestamp()

Clears the value of the "maintenanceEndTimestamp" field

ClearPayloadType
public void ClearPayloadType()
protoErrorRes.ClearPayloadType()

Clears the value of the "payloadType" field

Fields

DescriptionFieldNumber
public const int DescriptionFieldNumber
value = ProtoErrorRes.DescriptionFieldNumber

Field number for the "description" field.

ErrorCodeFieldNumber
public const int ErrorCodeFieldNumber
value = ProtoErrorRes.ErrorCodeFieldNumber

Field number for the "errorCode" field.

MaintenanceEndTimestampFieldNumber
public const int MaintenanceEndTimestampFieldNumber
value = ProtoErrorRes.MaintenanceEndTimestampFieldNumber

Field number for the "maintenanceEndTimestamp" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoErrorRes.PayloadTypeFieldNumber

Field number for the "payloadType" field.