InvalidTokenPythonExceptionInterpreter
QuantConnect.Exceptions.InvalidTokenPythonExceptionInterpreter
Bases: PythonExceptionInterpreter
Interprets InvalidTokenPythonExceptionInterpreter instances
order
order: int
Determines the order that an instance of this class should be called
can_interpret
can_interpret(exception: Exception) -> bool
Determines if this interpreter should be applied to the specified exception.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exception
|
Exception
|
The exception to check |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the exception can be interpreted, false otherwise. |
interpret
interpret(
exception: Exception,
inner_interpreter: IExceptionInterpreter,
) -> Exception
Interprets the specified exception into a new exception
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exception
|
Exception
|
The exception to be interpreted |
required |
inner_interpreter
|
IExceptionInterpreter
|
An interpreter that should be applied to the inner exception. |
required |
Returns:
| Type | Description |
|---|---|
Exception
|
The interpreted exception. |