PHP Class eZ\Publish\Core\REST\Client\Input\Parser\ErrorMessage

Inheritance: extends eZ\Publish\Core\REST\Common\Input\BaseParser
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$errorCodeMapping array Mapping of error codes to the respective exception classes.

Public Methods

Method Description
parse ( array $data, ParsingDispatcher $parsingDispatcher ) : Exception | ErrorMessage Parse input structure.

Method Details

parse() public method

Parse input structure.
public parse ( array $data, ParsingDispatcher $parsingDispatcher ) : Exception | ErrorMessage
$data array
$parsingDispatcher eZ\Publish\Core\REST\Common\Input\ParsingDispatcher
return Exception | eZ\Publish\Core\REST\Client\Values\ErrorMessage

Property Details

$errorCodeMapping protected property

Mapping of error codes to the respective exception classes.
protected array $errorCodeMapping
return array