# `pwnlib.exception` — Pwnlib exceptions

exception pwnlib.exception.PwnlibException(msg, reason=None, exit_code=None)

  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, reason=None, exit_code=None)

    bar

  __repr__()

    Return repr(self).

  __weakref__

    list of weak references to the object