PHP Class Webmozart\Json\JsonError

Since: 1.0
Author: Bernhard Schussek ([email protected])
Afficher le fichier Open project: webmozart/json Class Usage Examples

Méthodes publiques

Méthode Description
getErrorMessage ( integer $error ) : string Returns the error message of a JSON error code.
getLastErrorMessage ( ) : string User-land implementation of json_last_error_msg() for PHP < 5.5.

Private Methods

Méthode Description
__construct ( )

Method Details

getErrorMessage() public static méthode

Returns the error message of a JSON error code.
public static getErrorMessage ( integer $error ) : string
$error integer The error code
Résultat string The error message

getLastErrorMessage() public static méthode

User-land implementation of json_last_error_msg() for PHP < 5.5.
public static getLastErrorMessage ( ) : string
Résultat string The last JSON error message