Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109795271
PhutilJSONParserException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Apr 23, 10:34
Size
811 B
Mime Type
text/x-php
Expires
Fri, Apr 25, 10:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25758622
Attached To
rPHU libphutil
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
;
}
}
Event Timeline
Log In to Comment