FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
shipengine-php/src/Message/InvalidFieldValueException.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
/
InvalidFieldValueException.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (41 loc) · 1021 Bytes
Breadcrumbs
shipengine-php
/
src
/
Message
/
InvalidFieldValueException.php
Copy path
File metadata and controls
46 lines (41 loc) · 1021 Bytes
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
37
38
39
40
41
42
43
44
45
46
<?php
declare
(strict_types=
1
);
namespace
ShipEngine
\
Message
;
use
ShipEngine
\
Util
\
Constants
\
ErrorCode
;
use
ShipEngine
\
Util
\
Constants
\
ErrorType
;
/**
* This error occurs when a field has been set to an invalid value.
*/
final
class
InvalidFieldValueException
extends
ShipEngineException
{
/**
* The name of the invalid field.
*/
public
string
$
field_name
;
/**
* The value of the invalid field.
*/
public
string
$
field_value
;
/**
* Instantiates a client-side error.
*
* @param string $field_name
* @param string $reason
* @param mixed $field_value
*/
public
function
__construct
(
string
$
field_name
,
string
$
reason
,
$
field_value
) {
parent
::
__construct
(
"
$
field_name
-
$
reason
"
,
null
,
null
,
'
Validation
'
,
'
Invalid Field Value
'
,
null
);
$
this
->
field_name
=
$
field_name
;
$
this
->
field_value
=
$
field_value
;
}
}
Back
|
FazBrowse Home
|
New Git URL