MCPcopy
hub / github.com/Gallopsled/pwntools / error

Method error

pwnlib/log.py:431–439  ·  view source on GitHub ↗

error(message, *args, **kwargs) To be called outside an exception handler. Logs an error message, then raises a ``PwnlibException``.

(self, message, *args, **kwargs)

Source from the content-addressed store, hash-verified

429 return self.warning(*args, **kwargs)
430
431 def error(self, message, *args, **kwargs):
432 """error(message, *args, **kwargs)
433
434 To be called outside an exception handler.
435
436 Logs an error message, then raises a ``PwnlibException``.
437 """
438 self._log(logging.ERROR, message, args, kwargs, 'error')
439 raise PwnlibException(message % args)
440
441 def exception(self, message, *args, **kwargs):
442 """exception(message, *args, **kwargs)

Callers 15

_runFunction · 0.80
make_elf_from_assemblyFunction · 0.80
make_elfFunction · 0.80
asmFunction · 0.80
disasmFunction · 0.80
fmtstr_splitFunction · 0.80
find_offsetMethod · 0.80
__setattr__Method · 0.80
__getitem__Method · 0.80
__init__Method · 0.80
stackMethod · 0.80

Calls 2

_logMethod · 0.95
PwnlibExceptionClass · 0.90

Tested by

no test coverage detected