Merge pull request #13778 from eileenmcnaughton/paymetn_next
[civicrm-core.git] / api / Exception.php
index 198c1f63795f7a4db35b1b115bf5b594edb2bd02..1db0ae564fce3532996a0743b993b2ba76370194 100644 (file)
@@ -106,7 +106,7 @@ class CiviCRM_API3_Exception extends Exception {
    * @param Exception|NULL $previous
    *   A previous exception which caused this new exception.
    */
-  public function __construct($message, $error_code, $extraParams = array(), Exception $previous = NULL) {
+  public function __construct($message, $error_code = 0, $extraParams = array(), Exception $previous = NULL) {
     parent::__construct(ts($message));
     $this->extraParams = $extraParams + array('error_code' => $error_code);
   }