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