MCPcopy Index your code
hub / github.com/microsoft/playwright-python / serialize_error

Function serialize_error

playwright/_impl/_helper.py:346–349  ·  view source on GitHub ↗
(ex: Exception, tb: Optional[TracebackType])

Source from the content-addressed store, hash-verified

344
345
346def serialize_error(ex: Exception, tb: Optional[TracebackType]) -> ErrorPayload:
347 return ErrorPayload(
348 message=str(ex), name="Error", stack="".join(traceback.format_tb(tb))
349 )
350
351
352def parse_error(error: ErrorPayload, log: Optional[str] = None) -> Error:

Callers 1

callMethod · 0.90

Calls 1

ErrorPayloadClass · 0.85

Tested by

no test coverage detected