Add routine for updating smartgroups, currently handling datepicker conversion
[civicrm-core.git] / api / Exception.php
index 8c6ca5ba73d26c9e04381065d2416509547692f6..1db0ae564fce3532996a0743b993b2ba76370194 100644 (file)
@@ -5,7 +5,7 @@
  *
  * @package CiviCRM_APIv3
  *
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2019
  */
 
 /**
@@ -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);
   }