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

def error(self, message, *args, **kwargs):

    self._log(logging.ERROR, message, args, kwargs, 'error')
    raise PwnlibException((message % args))
