Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188822
PhutilJSONParserException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
811 B
Referenced Files
None
Subscribers
None
PhutilJSONParserException.php
View Options
<?php
final
class
PhutilJSONParserException
extends
Exception
{
private
$sourceLine
;
private
$sourceChar
;
private
$sourceToken
;
private
$expected
;
public
function
__construct
(
$message
,
$line
=
null
,
$char
=
null
,
$token
=
null
,
$expected
=
null
)
{
$this
->
sourceLine
=
$line
;
$this
->
sourceChar
=
$char
;
$this
->
sourceToken
=
$token
;
$this
->
expected
=
$expected
;
parent
::
__construct
(
pht
(
'Parse error on line %d at column %d: %s'
,
$line
,
$char
,
$message
));
}
public
function
getSourceLine
()
{
return
$this
->
sourceLine
;
}
public
function
getSourceChar
()
{
return
$this
->
sourceChar
;
}
public
function
getSourceToken
()
{
return
$this
->
sourceToken
;
}
public
function
getExpectedTokens
()
{
return
$this
->
expected
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 08:32 (12 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
810480
Default Alt Text
PhutilJSONParserException.php (811 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment