handle_error
Base method for error handling in EVM contracts.
Signature
Parameters
self: The contract instancecomputation: The failed computation object containing execution state and error information
Description
Creates and raises a BoaError when contract execution fails. This method:
- Creates a
BoaErrorfrom the failed computation - Strips internal frames from the traceback to show only user-relevant code
- Re-raises the error with clean stack trace
Usage
This method is called automatically by the framework when contract execution encounters an error. It's not typically called directly by users.
Related
BoaError- The exception type created by this methodstack_trace- Used to generate detailed error information