X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2FException.php;h=1db0ae564fce3532996a0743b993b2ba76370194;hb=7015248a60286e557e3513f9283a5fed8ddd6c57;hp=8c6ca5ba73d26c9e04381065d2416509547692f6;hpb=648631cd94799e87fe2347487d465b1a7256aa57;p=civicrm-core.git diff --git a/api/Exception.php b/api/Exception.php index 8c6ca5ba73..1db0ae564f 100644 --- a/api/Exception.php +++ b/api/Exception.php @@ -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); }