CRM-14931 - Nicer formating of statusBounce errors
[civicrm-core.git] / CRM / Core / Exception.php
index f6e8dfea670a2f5f07be413d705bd10d789c259d..ea319b57369d3df30587d0e0d08959c1df130b4e 100644 (file)
 
 class CRM_Core_Exception extends PEAR_Exception {
   private $errorData = array();
+
+  /**
+   * @param $message
+   * @param int $error_code
+   * @param array $errorData
+   * @param null $previous
+   */
   public function __construct($message, $error_code = 0, $errorData = array(), $previous = null) {
     parent::__construct(ts($message));
     $this->errorData = $errorData + array('error_code' => $error_code);
   }
 
   // custom string representation of object
+  /**
+   * @return string
+   */
   public function __toString() {
     return __CLASS__ . ": [{$this->errorData['error_code']}: {$this->message}\n";
   }