exception sym.sdk.exceptions.sym_exception.ExceptionWithHint(error_type: str, name: str, message: str)

Bases: sym.sdk.exceptions.sym_exception.SymException

A trait that can be mixed into Exception classes that want to have messages formatted with a hint.

Overrides the __str__ method to provide a formatted output string.

i.e. the output will look like > This is my main exception message > > Hint: This is the exception hint

Caution: This class should not be used for matching exceptions in except statements!

property hint

The string to be displayed in the Hint section


Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.