Lean
$LEAN_TAG$
|
Interprets exceptions using the configured interpretations More...
Public Member Functions | |
StackExceptionInterpreter (IEnumerable< IExceptionInterpreter > interpreters) | |
Initializes a new instance of the StackExceptionInterpreter class More... | |
bool | CanInterpret (Exception exception) |
Determines if this interpreter should be applied to the specified exception. More... | |
Exception | Interpret (Exception exception, IExceptionInterpreter innerInterpreter=null) |
Interprets the specified exception into a new exception More... | |
string | GetExceptionMessageHeader (Exception exception) |
Combines the exception messages from this exception and all inner exceptions. More... | |
Static Public Member Functions | |
static StackExceptionInterpreter | CreateFromAssemblies (IEnumerable< Assembly > assemblies) |
Creates a new StackExceptionInterpreter by loading implementations with default constructors from the specified assemblies More... | |
Public Attributes | |
int | Order => 0 |
Determines the order that an instance of this class should be called More... | |
IEnumerable< IExceptionInterpreter > | Interpreters => _interpreters |
Gets the interpreters loaded into this instance More... | |
Static Public Attributes | |
static readonly Lazy< StackExceptionInterpreter > | Instance |
Stack interpreter instance More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Exceptions.IExceptionInterpreter | |
int | Order [get] |
Determines the order that a class that implements this interface should be called More... | |
Interprets exceptions using the configured interpretations
Definition at line 27 of file StackExceptionInterpreter.cs.
QuantConnect.Exceptions.StackExceptionInterpreter.StackExceptionInterpreter | ( | IEnumerable< IExceptionInterpreter > | interpreters | ) |
Initializes a new instance of the StackExceptionInterpreter class
interpreters | The interpreters to use |
Definition at line 46 of file StackExceptionInterpreter.cs.
bool QuantConnect.Exceptions.StackExceptionInterpreter.CanInterpret | ( | Exception | exception | ) |
Determines if this interpreter should be applied to the specified exception.
exception | The exception to check |
Implements QuantConnect.Exceptions.IExceptionInterpreter.
Definition at line 61 of file StackExceptionInterpreter.cs.
Exception QuantConnect.Exceptions.StackExceptionInterpreter.Interpret | ( | Exception | exception, |
IExceptionInterpreter | innerInterpreter = null |
||
) |
Interprets the specified exception into a new exception
exception | The exception to be interpreted |
innerInterpreter | An interpreter that should be applied to the inner exception. This provides a link back allowing the inner exceptions to be interpreted using the intepretators configured in the StackExceptionInterpreter. Individual implementations may ignore this value if required. |
Implements QuantConnect.Exceptions.IExceptionInterpreter.
Definition at line 75 of file StackExceptionInterpreter.cs.
string QuantConnect.Exceptions.StackExceptionInterpreter.GetExceptionMessageHeader | ( | Exception | exception | ) |
Combines the exception messages from this exception and all inner exceptions.
exception | The exception to create a collated message from |
Definition at line 106 of file StackExceptionInterpreter.cs.
|
static |
Creates a new StackExceptionInterpreter by loading implementations with default constructors from the specified assemblies
assemblies | The assemblies to scan |
Definition at line 116 of file StackExceptionInterpreter.cs.
|
static |
Stack interpreter instance
Definition at line 34 of file StackExceptionInterpreter.cs.
int QuantConnect.Exceptions.StackExceptionInterpreter.Order => 0 |
Determines the order that an instance of this class should be called
Definition at line 40 of file StackExceptionInterpreter.cs.
IEnumerable<IExceptionInterpreter> QuantConnect.Exceptions.StackExceptionInterpreter.Interpreters => _interpreters |
Gets the interpreters loaded into this instance
Definition at line 54 of file StackExceptionInterpreter.cs.