databaseError() public static method

public static databaseError ( $errorMessage, $errorCode )
 private function doQuery($query)
 {
     $result = $this->db->query($query);
     if ($this->db->lastErrorCode() > 0) {
         throw StorageException::databaseError($this->db->lastErrorMsg(), $this->db->lastErrorCode());
     }
     return $result;
 }