6 class ConduitException
extends Exception
{
8 private $errorDescription;
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.
18 final public function setErrorDescription($error_description) {
19 $this->errorDescription
= $error_description;
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
;