original_string: public function addErrorMessage($message, $params = array())
      {
          $message = $this->trans($message, $params);
          static::$messages[] = array(
              'type' => 'error',
              'bootstrapType' => 'danger',
              'message' => $message
          );
          static::$success = false;
      }
code: public function addErrorMessage($message, $params = array())
      {
          $message = $this->trans($message, $params);
          static::$messages[] = array(
              'type' => 'error',
              'bootstrapType' => 'danger',
              'message' => $message
          );
          static::$success = false;
      }
code_tokens: public function addErrorMessage ( $ message , $ params = array ( ) ) { $ message = $ this -> trans ( $ message , $ params ) ; static :: $ messages [ ] = array ( 'type' => 'error' , 'bootstrapType' => 'danger' , 'message' => $ message ) ; static :: $ success = false ; }
docstring: add a error message to the api call
  @param $message
docstring_tokens: add a error message to the api call