public function getErrorMessage() { if ($this->pdo_exception) { return $this->pdo_exception->getMessage(); } else { return 'Database temporarily unavailable'; } }