Skip to content

ClrBubbledExceptionInterpreter

QuantConnect.Exceptions.ClrBubbledExceptionInterpreter

Bases: SystemExceptionInterpreter

Interprets ClrBubbledException 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. f

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.

try_get_line_and_file

try_get_line_and_file(
    stack_trace: str, file_and_line: Optional[str]
) -> Tuple[bool, str]

Helper method to get the file and line from a C# stacktrace