Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / conduit / protocol / exception / ConduitException.php
blobc30931de04f67418f488686796b2f719dd7f99fd
1 <?php
3 /**
4 * @concrete-extensible
5 */
6 class ConduitException extends Exception {
8 private $errorDescription;
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).
15 * @param string Detailed error description.
16 * @return this
18 final public function setErrorDescription($error_description) {
19 $this->errorDescription = $error_description;
20 return $this;
23 /**
24 * Get a detailed error description, if available.
26 * @return string|null Error description, if one is available.
28 final public function getErrorDescription() {
29 return $this->errorDescription;