Skip to content

FailureReport (Class)

A source-level report of why a debugged contract call failed: the failing statement, the inlined call stack, and the variables in scope per frame.

str() (or render()) formats the report the way the SilverScript CLI debugger prints it, including source context lines.

frames property

frames: list[FailureFrame]

The call stack at the failure, innermost frame first.

message property

message: str

Human-readable failure description (the script engine error).

__repr__

__repr__() -> str

The detailed string representation.

RETURNS DESCRIPTION
str

The FailureReport as a repr string.

TYPE: str

__str__

__str__() -> str

The string representation.

RETURNS DESCRIPTION
str

The rendered failure report.

TYPE: str

render

render() -> str

Format the report for terminal display: failing source lines with context, plus each frame's variables.

RETURNS DESCRIPTION
str

The rendered report.

TYPE: str