algokit_utils.errors.logic_error
algokit_utils.errors.logic_error
Section titled “algokit_utils.errors.logic_error”Exceptions
Section titled “Exceptions”LogicError | Common base class for all non-exit exceptions. |
|---|
Classes
Section titled “Classes”LogicErrorData | dict() -> new empty dictionary |
|---|
Functions
Section titled “Functions”| parse_logic_error(→ LogicErrorData | None) | |
|---------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| create_simulate_traces_for_logic_error(…) | Extract simulation traces from a simulate response for logic error debugging. |
Module Contents
Section titled “Module Contents”class LogicErrorData
Section titled “class LogicErrorData”Bases: TypedDict
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
: d = {}
for k, v in iterable:
d[k] = v
dict(
**kwargs) -> new dictionary initialized with the name=value pairs : in the keyword argument list. For example: dict(one=1, two=2)
transaction_id : str
Section titled “transaction_id : str”message : str
Section titled “message : str”pc : int
Section titled “pc : int”parse_logic_error(error_str: str) → LogicErrorData | None
Section titled “parse_logic_error(error_str: str) → LogicErrorData | None”exception LogicError(*, logic_error_str: str, program: str, source_map: ProgramSourceMap | None, transaction_id: str, message: str, pc: int, logic_error: Exception | None = None, traces: list[SimulateTransactionResult] | None = None, get_line_for_pc: Callable[[int], int | None] | None = None)
Section titled “exception LogicError(*, logic_error_str: str, program: str, source_map: ProgramSourceMap | None, transaction_id: str, message: str, pc: int, logic_error: Exception | None = None, traces: list[SimulateTransactionResult] | None = None, get_line_for_pc: Callable[[int], int | None] | None = None)”Bases: Exception
Common base class for all non-exit exceptions.
logic_error = None
Section titled “logic_error = None”logic_error_str
Section titled “logic_error_str”source_map
Section titled “source_map”transaction_id
Section titled “transaction_id”message
Section titled “message”traces = None
Section titled “traces = None”line_no
Section titled “line_no”trace(lines: int = 5) → str
Section titled “trace(lines: int = 5) → str”create_simulate_traces_for_logic_error(simulate: object) → list[SimulateTransactionResult]
Section titled “create_simulate_traces_for_logic_error(simulate: object) → list[SimulateTransactionResult]”Extract simulation traces from a simulate response for logic error debugging.
Args: : simulate: An object with simulate_response and failed_at attributes.
Returns: : A list of SimulateTransactionResult objects extracted from the simulation response.