2016-08-19 00:51:35 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Core\Config;
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
|
|
|
/**
|
2016-09-09 08:43:05 +02:00
|
|
|
* Exception thrown when the {@link SilverStripe\Core\Config\DAG} class is unable to resolve sorting the DAG due
|
2016-08-19 00:51:35 +02:00
|
|
|
* to cyclic dependencies.
|
|
|
|
*/
|
2016-09-09 08:43:05 +02:00
|
|
|
class DAG_CyclicException extends Exception
|
2016-08-19 00:51:35 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
public $dag;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $message The Exception message
|
2016-09-09 08:43:05 +02:00
|
|
|
* @param DAG $dag The remainder of the Directed Acyclic Graph (DAG) after the last successful sort
|
2016-08-19 00:51:35 +02:00
|
|
|
*/
|
|
|
|
public function __construct($message, $dag)
|
|
|
|
{
|
|
|
|
$this->dag = $dag;
|
|
|
|
parent::__construct($message);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|