Method | Description | |
---|---|---|
__construct ( Neomerx\JsonApi\Contracts\Document\ErrorInterface | Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | |
Constructor. | |
addError ( Neomerx\JsonApi\Contracts\Document\ErrorInterface $error ) | ||
addErrors ( |
||
addErrorsFromArray ( array $errors ) : void | ||
getErrors ( ) : |
||
getHttpCode ( ) : integer | ||
throwException ( |
public __construct ( Neomerx\JsonApi\Contracts\Document\ErrorInterface | Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | |
||
$errors | Neomerx\JsonApi\Contracts\Document\ErrorInterface | Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | |
|
$httpCode | integer | |
$previous | Exception |
public addError ( Neomerx\JsonApi\Contracts\Document\ErrorInterface $error ) | ||
$error | Neomerx\JsonApi\Contracts\Document\ErrorInterface |
public addErrorsFromArray ( array $errors ) : void | ||
$errors | array | |
return | void |
public static throwException ( |
||
$exception |