Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/edges/exception/PhabricatorEdgeCycleException.php
13418 views
1
<?php
2
3
final class PhabricatorEdgeCycleException extends Exception {
4
5
private $cycleEdgeType;
6
private $cycle;
7
8
public function __construct($cycle_edge_type, array $cycle) {
9
$this->cycleEdgeType = $cycle_edge_type;
10
$this->cycle = $cycle;
11
12
$cycle_list = implode(', ', $cycle);
13
14
parent::__construct(
15
pht(
16
'Graph cycle detected (type=%s, cycle=%s).',
17
$cycle_edge_type,
18
$cycle_list));
19
}
20
21
public function getCycle() {
22
return $this->cycle;
23
}
24
25
public function getCycleEdgeType() {
26
return $this->cycleEdgeType;
27
}
28
29
}
30
31