show any error messages posted to the bus.
495317
@Subscribe
  public void onFailure(Throwable t) {
    Toast.makeText(this, t.getMessage(), LENGTH_LONG).show();
  }
1122043
def _print_errs(self):
        
        i = 0
        for error in self.errors:
            print(self._errmsg(error, tb=True, i=i))
            # for spacing
            if self.errs_traceback is False:
                print()
            i += 1
167711
def onerror(self, message, source, lineno, colno):
        """"""
        return (message, source, lineno, colno)
396916
def error_message_and_exit(message, error_result):
    """"""
    if message:
        error_message(message)
    puts(json.dumps(error_result, indent=2))
    sys.exit(1)
528560
def _delivery_report(err, msg):
    '''  '''
    if err is not None:
        log.error('Message delivery failed: %s', err)
    else:
        log.debug('Message delivered to %s [%s]', msg.topic(), msg.partition())
797750
def error(*args):
    """"""
    if sys.stdin.isatty():
        print('ERROR:', *args, file=sys.stderr)
    else:
        notify_error(*args)
838501
def check_errors(self):
        '''
        
        '''
        errors = ERROR_PATTTERN.findall(self.out)
        # "errors" is a list of tuples
        if errors:
            self.log.error('! Errors occurred:')

            self.log.error('\n'.join(
                [error.replace('\r', '').strip() for error
                 in chain(*errors) if error.strip()]
            ))

            self.log.error('! See "%s.log" for details.' % self.project_name)

            if self.opt.exit_on_error:
                self.log.error('! Exiting...')
                sys.exit(1)
841063
def _error_message(self):
        
        body = self._deserialize()
        return body.get('message', body) if isinstance(body, dict) else body
695739
def _on_message(self, bus, message):  # pylint: disable=unused-argument
        """"""
        if message.type == Gst.MessageType.EOS:
            self.stop()
        elif message.type == Gst.MessageType.ERROR:
            self.stop()
            err, _ = message.parse_error()
            _LOGGER.error('%s', err)
630331
public function displayValidRoutesAction()
    {
        $this->di->views->add('default/error-routes', [
          'route'           => $this->di->request->getRoute(),
          'routes'          => $this->di->router->getAll(),
          'internalRoutes'  => $this->di->router->getInternal(),
          'controllers'     => $this->di->getControllers(),
        ]);
    }
602884
def show_message(self):
        """"""
        print(
            'current version: {current_version}\n'
            'latest version : {latest_version}'.format(
                current_version=self.current_version,
                latest_version=self.latest_version))
755556
def show_messages(self):
        """"""
        string = ''
        if self.static_message is not None:
            string += self.static_message.to_text()

        for message in self.dynamic_messages:
            string += message.to_text()

        print(string)
217686
def show_message(self, message, timeout=0):
        """"""
        self.main.statusBar().showMessage(message, timeout)
697831
def _emit_error(cls, message):
        """"""
        sys.stderr.write('ERROR: {message}\n'.format(message=message))
        sys.stderr.flush()
295329
def error(self, msg):
        
        body = msg['body'].replace(NULL, '')

        brief_msg = ""
        if 'message' in msg['headers']:
            brief_msg = msg['headers']['message']

        self.log.error("Received server error - message%s\n\n%s" % (brief_msg, body))

        returned = NO_RESPONSE_NEEDED
        if self.testing:
            returned = 'error'

        return returned
193059
def acked(err, msg):
    """"""
    if err is not None:
        print("failed to deliver message: {}".format(err.str()))
    else:
        print("produced to: {} [{}] @ {}".format(msg.topic(), msg.partition(), msg.offset()))
1052795
def _get_error_message(response):
    """"""
    try:
        data = response.json()
        if "error_description" in data:
            return data['error_description']
        if "error" in data:
            return data['error']
    except Exception:
        pass

    return "Unknown error"