Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
78a3f61f
Unverified
Commit
78a3f61f
authored
6 years ago
by
Seamus Lee
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #13263 from eileenmcnaughton/api_ex
#592
Add default for in Exception class.
parents
b86845e5
bc27f510
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/Exception.php
+1
-1
1 addition, 1 deletion
api/Exception.php
with
1 addition
and
1 deletion
api/Exception.php
+
1
−
1
View file @
78a3f61f
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment