2008-09-12 17:08:01 +04:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\Common;
|
|
|
|
|
|
|
|
class DoctrineException extends \Exception
|
2008-09-12 17:08:01 +04:00
|
|
|
{
|
|
|
|
private $_innerException;
|
|
|
|
|
|
|
|
public function __construct($message = "", Exception $innerException = null)
|
|
|
|
{
|
|
|
|
parent::__construct($message);
|
|
|
|
$this->_innerException = $innerException;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getInnerException()
|
|
|
|
{
|
|
|
|
return $this->_innerException;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function notImplemented($method, $class)
|
|
|
|
{
|
2008-12-18 17:08:11 +03:00
|
|
|
return new self("The method '$method' is not implemented in class '$class'.");
|
2008-09-12 17:08:01 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|