SimdJsonValueError
class SimdJsonValueError extends ValueError (View source)
Thrown for error conditions on fields such as $depth that are not expected to be from user-provided JSON, with similar behavior to php 8.0.
NOTE: https://www.php.net/valueerror was added in php 8.0. In older php versions, this extends Error instead.
When support for php 8.0 is dropped completely, a major release of simdjson will likely switch to a standard ValueError.
Properties
protected | $message | The error message |
from Error |
protected | $code | The error code |
from Error |
protected | $file | The filename where the error happened |
from Error |
protected | $line | The line where the error happened |
from Error |
Methods
Construct the error object.
Details
in
Error at line 428
__construct(string $message = "", int $code = 0, null|Throwable $previous = null)
Construct the error object.
in
Error at line 441
final string
getMessage()
Gets the message
in
Error at line 454
final int
getCode()
Gets the exception code
in
Error at line 462
final string
getFile()
Gets the file in which the exception occurred
in
Error at line 470
final int
getLine()
Gets the line on which the object was instantiated
in
Error at line 481
final array
getTrace()
Gets the stack trace
in
Error at line 489
final string
getTraceAsString()
Gets the stack trace as a string
in
Error at line 497
final null|Throwable
getPrevious()
Returns the previous Throwable
in
Error at line 505
string
__toString()
Gets a string representation of the thrown object
in
Error at line 525
void
__wakeup()
No description