Class shardimage\shardimagephpapi\api\ResponseError
Inheritance | shardimage\shardimagephpapi\api\ResponseError » shardimage\shardimagephpapi\base\BaseObject |
---|---|
Implements | JsonSerializable |
Uses Traits | shardimage\shardimagephpapi\base\SimpleJsonSerializerTrait |
Error object for a request.
Stores all relevant data for the exception thrown in the backend or other user errors.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$code | integer | Exception code | shardimage\shardimagephpapi\api\ResponseError |
$file | string | Exception source | shardimage\shardimagephpapi\api\ResponseError |
$line | string | Exception source | shardimage\shardimagephpapi\api\ResponseError |
$message | string | Exception message | shardimage\shardimagephpapi\api\ResponseError |
$trace | string | Exception debug backtrace string | shardimage\shardimagephpapi\api\ResponseError |
$type | string | Exception type | shardimage\shardimagephpapi\api\ResponseError |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Creates the object, populates the properties and calls the "init" method. | shardimage\shardimagephpapi\base\BaseObject |
__get() | Returns the value of a non-defined property, it there is a getter method. | shardimage\shardimagephpapi\base\BaseObject |
__isset() | Does the non-defined property with a getter exist and is it not NULL? | shardimage\shardimagephpapi\base\BaseObject |
__set() | Sets the value of a non-defined property, if there is a setter method. | shardimage\shardimagephpapi\base\BaseObject |
__unset() | Sets the value of a non-defined property to NULL, if there is a setter. | shardimage\shardimagephpapi\base\BaseObject |
jsonSerialize() | Serializes the current object by cutting empty arrays and NULL properties. | shardimage\shardimagephpapi\base\SimpleJsonSerializerTrait |
toArray() | Converts the object an array. | shardimage\shardimagephpapi\base\BaseObject |
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephpapi\base\BaseObject |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
ERRORCODE_ACCESS_DENIED | 1002 | Access denied. | shardimage\shardimagephpapi\api\ResponseError |
ERRORCODE_GENERAL_EXCEPTION | 0 | General error/exception. | shardimage\shardimagephpapi\api\ResponseError |
ERRORCODE_HTTP_ERROR | 1003 | HTTP error. | shardimage\shardimagephpapi\api\ResponseError |
ERRORCODE_OBJECT_NOT_FOUND | 1001 | Model missing in the backend. | shardimage\shardimagephpapi\api\ResponseError |
ERRORCODE_VALIDATION_FAILURE | 1000 | Model validation error in the backend. | shardimage\shardimagephpapi\api\ResponseError |
Property Details
Exception code
Exception source
Exception source
Exception message
Exception debug backtrace string
Exception type