ApplicationError.php
163 $error = new ApplicationError('GENERAL_ERROR', ApplicationError::LEVEL_ERROR, $statusCode, $message);
213 define('CLASS_NAME_INVALID', serialize(['CLASS_NAME_INVALID', ApplicationError::LEVEL_ERROR, 400,
217 define('AUTHENTICATION_FAILED', serialize(['AUTHENTICATION_FAILED', ApplicationError::LEVEL_ERROR, 401,
227 define('OFFSET_OUT_OF_BOUNDS', serialize(['OFFSET_OUT_OF_BOUNDS', ApplicationError::LEVEL_WARNING, 400,
228 $message->getText('The passed offset is negative or greater than the number of entries matching the parameters.')
230 define('SORT_FIELD_UNKNOWN', serialize(['SORT_FIELD_UNKNOWN', ApplicationError::LEVEL_ERROR, 400,
233 define('SORT_DIRECTION_UNKNOWN', serialize(['SORT_DIRECTION_UNKNOWN', ApplicationError::LEVEL_ERROR, 400,
241 define('ATTRIBUTE_NAME_INVALID', serialize(['ATTRIBUTE_NAME_INVALID', ApplicationError::LEVEL_ERROR, 400,
244 define('ATTRIBUTE_VALUE_INVALID', serialize(['ATTRIBUTE_VALUE_INVALID', ApplicationError::LEVEL_ERROR, 400,
254 define('ASSOCIATION_INVALID', serialize(['ASSOCIATION_INVALID', ApplicationError::LEVEL_ERROR, 400,
257 define('ASSOCIATION_NOT_FOUND', serialize(['ASSOCIATION_NOT_FOUND', ApplicationError::LEVEL_WARNING, 400,
261 define('SEARCH_NOT_SUPPORTED', serialize(['SEARCH_NOT_SUPPORTED', ApplicationError::LEVEL_ERROR, 400,
272 define('ORDER_NOT_SUPPORTED', serialize(['ORDER_NOT_SUPPORTED', ApplicationError::LEVEL_ERROR, 400,
276 define('CLASSES_DO_NOT_MATCH', serialize(['CLASSES_DO_NOT_MATCH', ApplicationError::LEVEL_ERROR, 400,
280 define('HISTORY_NOT_SUPPORTED', serialize(['HISTORY_NOT_SUPPORTED', ApplicationError::LEVEL_ERROR, 400,
static fromException(\Exception $ex)
Factory method for transforming an exception into an ApplicationError instance.
Definition: ApplicationError.php:172
const DEFAULT_ERROR_STATUS
Definition: ApplicationError.php:48
const LEVEL_ERROR
Definition: ApplicationError.php:45
IllegalArgumentException signals an exception in method arguments.
Definition: IllegalArgumentException.php:18
const LEVEL_WARNING
Definition: ApplicationError.php:44
StringUtil provides support for string manipulation.
Definition: StringUtil.php:18
static getGeneral($message, $statusCode=self::DEFAULT_ERROR_STATUS)
Factory method for creating a general error instance.
Definition: ApplicationError.php:162
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
ApplicationException signals a general application exception.
Definition: ApplicationException.php:22
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
const LEVEL_FATAL
Definition: ApplicationError.php:46
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
AuthorizationException signals an exception in authorization.
Definition: AuthorizationException.php:18