Lean  $LEAN_TAG$
QuantConnect.Packets.HandledErrorPacket Class Reference

Algorithm runtime error packet from the lean engine. This is a managed error which stops the algorithm execution. More...

Inheritance diagram for QuantConnect.Packets.HandledErrorPacket:
[legend]

Public Member Functions

 HandledErrorPacket ()
 Default constructor for JSON More...
 
 HandledErrorPacket (string algorithmId, string message, string stacktrace="")
 Create a new handled error packet More...
 
- Public Member Functions inherited from QuantConnect.Packets.Packet
 Packet (PacketType type)
 Initialize the base class and setup the packet type. More...
 

Public Attributes

string Message
 Runtime error message from the exception More...
 
string AlgorithmId
 Algorithm id which generated this runtime error More...
 
string StackTrace
 Error stack trace information string passed through from the Lean exception More...
 

Additional Inherited Members

- Properties inherited from QuantConnect.Packets.Packet
PacketType Type = PacketType.None [get, set]
 Packet type defined by a string enum More...
 
virtual string Channel = "" [get, set]
 User unique specific channel endpoint to send the packets More...
 

Detailed Description

Algorithm runtime error packet from the lean engine. This is a managed error which stops the algorithm execution.

Definition at line 25 of file HandledErrorPacket.cs.

Constructor & Destructor Documentation

◆ HandledErrorPacket() [1/2]

QuantConnect.Packets.HandledErrorPacket.HandledErrorPacket ( )

Default constructor for JSON

Definition at line 45 of file HandledErrorPacket.cs.

◆ HandledErrorPacket() [2/2]

QuantConnect.Packets.HandledErrorPacket.HandledErrorPacket ( string  algorithmId,
string  message,
string  stacktrace = "" 
)

Create a new handled error packet

Definition at line 52 of file HandledErrorPacket.cs.

Member Data Documentation

◆ Message

string QuantConnect.Packets.HandledErrorPacket.Message

Runtime error message from the exception

Definition at line 30 of file HandledErrorPacket.cs.

◆ AlgorithmId

string QuantConnect.Packets.HandledErrorPacket.AlgorithmId

Algorithm id which generated this runtime error

Definition at line 35 of file HandledErrorPacket.cs.

◆ StackTrace

string QuantConnect.Packets.HandledErrorPacket.StackTrace

Error stack trace information string passed through from the Lean exception

Definition at line 40 of file HandledErrorPacket.cs.


The documentation for this class was generated from the following file: