Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conduit/protocol/exception/ConduitException.php
12262 views
1
<?php
2
3
/**
4
* @concrete-extensible
5
*/
6
class ConduitException extends Exception {
7
8
private $errorDescription;
9
10
/**
11
* Set a detailed error description. If omitted, the generic error description
12
* will be used instead. This is useful to provide specific information about
13
* an exception (e.g., which values were wrong in an invalid request).
14
*
15
* @param string Detailed error description.
16
* @return this
17
*/
18
final public function setErrorDescription($error_description) {
19
$this->errorDescription = $error_description;
20
return $this;
21
}
22
23
/**
24
* Get a detailed error description, if available.
25
*
26
* @return string|null Error description, if one is available.
27
*/
28
final public function getErrorDescription() {
29
return $this->errorDescription;
30
}
31
32
}
33
34