\RESTfulAPI_Error
Stores an API errors. And a library of static methods.
- Author: Thierry Francois @colymba thierry@colymba.com
- Copyright: Copyright (c) 2013, Thierry Francois
- License: http://opensource.org/licenses/BSD-3-Clause BSD Simplified
Synopsis
class RESTfulAPI_Error
{
- // methods
- public void __construct()
- public static false|string get_json_error()
Members
public
- $body
—
mixed
Error response body to be serialized - $code
—
integer
Error HTTP status code - $message
—
string
Error message
Methods
public
- __construct() — Creates the error object and sets properties
- get_json_error() — Check for the latest JSON parsing error and return the message if any