DoctrineException.php 559 Bytes
Newer Older
romanb's avatar
romanb committed
1 2
<?php

3 4 5
namespace Doctrine\Common;

class DoctrineException extends \Exception
romanb's avatar
romanb committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
{
    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)
    {
22
        return new self("The method '$method' is not implemented in class '$class'.");
romanb's avatar
romanb committed
23 24 25
    }
}