FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
shipengine-php/src/Message/TimeoutException.php at main · ShipEngine/shipengine-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ShipEngine
/
shipengine-php
Public
Notifications
You must be signed in to change notification settings
Fork
12
Star
17
Code
Issues
2
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
shipengine-php
/
src
/
Message
/
TimeoutException.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (33 loc) · 1.01 KB
Breadcrumbs
shipengine-php
/
src
/
Message
/
TimeoutException.php
Copy path
File metadata and controls
36 lines (33 loc) · 1.01 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
declare
(strict_types=
1
);
namespace
ShipEngine
\
Message
;
use
ShipEngine
\
Util
\
Constants
\
ErrorCode
;
use
ShipEngine
\
Util
\
Constants
\
ErrorType
;
/**
* Class TimeoutException - The exception used by this SDK when the configured/default client timeout is reached.
*
* @package ShipEngine\Message
*/
final
class
TimeoutException
extends
ShipEngineException
{
/**
* TimeoutException constructor - Instantiates a timeout exception.
*
* @param int $retryAfter The amount of time (in SECONDS) to wait before retrying the request.
* @param string|null $source
* @param string|null $requestId
*/
public
function
__construct
(
int
$
retryAfter
,
string
$
source
=
null
,
?
string
$
requestId
=
null
) {
parent
::
__construct
(
"
The request took longer than the
$
retryAfter
seconds allowed.
"
,
$
requestId
,
$
source
,
'
System
'
,
'
Timeout
'
,
'
https://www.shipengine.com/docs/rate-limits
'
);
}
}
Back
|
FazBrowse Home
|
New Git URL