*/
class Horde_Exception extends Exception
{
-
private $_previous = null;
/**
+ * Error details that should not be part of the main exception message,
+ * e.g. any additional debugging information.
+ *
+ * @var string
+ */
+ public $details;
+
+ /**
* Construct the exception
*
* @param string $msg
*/
class Horde_Exception extends Exception
{
+ /**
+ * Error details that should not be part of the main exception message,
+ * e.g. any additional debugging information.
+ *
+ * @var string
+ */
+ public $details;
}
}
if ($message instanceof Exception) {
$previous = $message;
}
+ if (method_exists($message, 'getUserinfo') &&
+ $details = $message->getUserinfo()) {
+ $this->details = $details;
+ }
$message = $message->getMessage();
}