Class shardimage\shardimagephpapi\api\ResponseError

Inheritanceshardimage\shardimagephpapi\api\ResponseError » shardimage\shardimagephpapi\base\BaseObject
ImplementsJsonSerializable
Uses Traitsshardimage\shardimagephpapi\base\SimpleJsonSerializerTrait

Error object for a request.

Stores all relevant data for the exception thrown in the backend or other user errors.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

Hide inherited methods

MethodDescriptionDefined By
ensureClass() Creates an object from the given parameters. shardimage\shardimagephpapi\base\BaseObject
init() Custom initialization. shardimage\shardimagephpapi\base\BaseObject

Constants

Hide inherited constants

ConstantValueDescriptionDefined 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

$code public property

Exception code

public integer $code null
$file public property

Exception source

public string $file null
$line public property

Exception source

public string $line null
$message public property

Exception message

public string $message null
$trace public property

Exception debug backtrace string

public string $trace null
$type public property

Exception type

public string $type null