protected function handleError($exception){
        $error = $this->queryBuilder->handleQueryException($exception);
        if($error[0] && isset($this->translations[$this->name][$error[0].'_'.$error[1]])) {
            $message = $this->translations[$this->name][$error[0].'_'.$error[1]];
        } else {
            $message = sprintf($this->translations['database']['query_error'],$error[0], $error[1]);
        }
        return $message;
    }