pwnlib.exception — Pwnlib exceptions

exception pwnlib.exception.PwnlibException(msg: str, reason: tuple[type[BaseException], BaseException, TracebackType] | tuple[None, None, None] | None = None, exit_code: int | None = None)[source]

Exception thrown by pwnlib.log.error().

Pwnlib functions that encounters unrecoverable errors should call the pwnlib.log.error() function instead of throwing this exception directly.

bar

__init__(msg: str, reason: tuple[type[BaseException], BaseException, TracebackType] | tuple[None, None, None] | None = None, exit_code: int | None = None)[source]

bar

__repr__() str[source]

Return repr(self).

__weakref__[source]

list of weak references to the object