Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mailgun
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
mailgun
Merge requests
!25
Resolve
#3346676
"Dont requeue test mails"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#3346676
"Dont requeue test mails"
issue/mailgun-3346676:3346676-dont-requeue-test-mails
into
2.0.x
Overview
0
Commits
4
Pipelines
0
Changes
6
Open
Pieter Frenssen
requested to merge
issue/mailgun-3346676:3346676-dont-requeue-test-mails
into
2.0.x
1 year ago
Overview
0
Commits
4
Pipelines
0
Changes
6
Expand
Closes
#3346676
0
0
Merge request reports
Compare
2.0.x
2.0.x (HEAD)
and
latest version
latest version
a18a3396
4 commits,
1 year ago
6 files
+
102
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/Exception/MailgunClientException.php
0 → 100644
+
32
−
0
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\mailgun\Exception
;
/**
* Exception thrown when the Mailgun client encounters an error.
*/
class
MailgunClientException
extends
\RuntimeException
{
/**
* Create a new MailgunClientException from an exception.
*
* @param \Exception $e
* The exception to create the MailgunClientException from.
* @param ?string $message
* Optional message to use for the exception.
* @param ?int $code
* Optional code to use for the exception.
*
* @return \Drupal\mailgun\Exception\MailgunClientException
* The new MailgunClientException.
*/
public
static
function
fromException
(
\Exception
$e
,
?
string
$message
=
NULL
,
?
int
$code
=
NULL
)
:
MailgunClientException
{
$message
=
$message
??
$e
->
getMessage
();
$code
=
$code
??
$e
->
getCode
();
return
new
static
(
$message
,
$code
,
$e
);
}
}
Loading