1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/lib/Doctrine/Common/DoctrineException.php

26 lines
559 B
PHP
Raw Normal View History

2008-09-12 17:08:01 +04:00
<?php
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)
{
return new self("The method '$method' is not implemented in class '$class'.");
2008-09-12 17:08:01 +04:00
}
}