silverstripe-framework/Core/Config/SS_DAG_CyclicException.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

27 lines
547 B
PHP

<?php
namespace SilverStripe\Core\Config;
use Exception;
/**
* Exception thrown when the {@link SilverStripe\Core\Config\SS_DAG} class is unable to resolve sorting the DAG due
* to cyclic dependencies.
*/
class SS_DAG_CyclicException extends Exception
{
public $dag;
/**
* @param string $message The Exception message
* @param SS_DAG $dag The remainder of the Directed Acyclic Graph (DAG) after the last successful sort
*/
public function __construct($message, $dag)
{
$this->dag = $dag;
parent::__construct($message);
}
}