2014-11-26 11:38:24 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-02-26 10:37:37 +00:00
|
|
|
* Copyright (c) 2012 Frank Karlitschek <frank@owncloud.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
2014-11-26 11:38:24 +00:00
|
|
|
*/
|
2015-02-26 10:37:37 +00:00
|
|
|
|
2014-11-26 11:38:24 +00:00
|
|
|
namespace OC;
|
|
|
|
|
|
|
|
class DatabaseException extends \Exception {
|
|
|
|
private $query;
|
|
|
|
|
|
|
|
//FIXME getQuery seems to be unused, maybe use parent constructor with $message, $code and $previous
|
|
|
|
public function __construct($message, $query = null){
|
|
|
|
parent::__construct($message);
|
|
|
|
$this->query = $query;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getQuery() {
|
|
|
|
return $this->query;
|
|
|
|
}
|
|
|
|
}
|