1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Error;
/**
* Base exception for all responses with http status code 4xx
* @package Commercetools\Core\Error
*/
class ClientErrorException extends ApiServiceException
{
public function getErrorContainer()
{
$errors = parent::getErrors();
return ErrorContainer::fromArray($errors);
}
}