databaseexception.php 551 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright (c) 2012 Frank Karlitschek <frank@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OC;
  9. class DatabaseException extends \Exception {
  10. private $query;
  11. //FIXME getQuery seems to be unused, maybe use parent constructor with $message, $code and $previous
  12. public function __construct($message, $query = null){
  13. parent::__construct($message);
  14. $this->query = $query;
  15. }
  16. public function getQuery() {
  17. return $this->query;
  18. }
  19. }