@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 32 lines 814 B view raw
1<?php 2 3/** 4 * @concrete-extensible 5 */ 6class 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 $error_description 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}