PHP Class NilPortugues\Laravel5\JsonApi\Actions\CreateResource

Inheritance: extends NilPortugues\Api\JsonApi\Server\Actions\CreateResource
Exibir arquivo Open project: nilportugues/laravel5-jsonapi Class Usage Examples

Public Methods

Method Description
getErrorResponse ( Exception $e, NilPortugues\Api\JsonApi\Server\Errors\ErrorBag $errorBag ) : Response

Method Details

getErrorResponse() public method

public getErrorResponse ( Exception $e, NilPortugues\Api\JsonApi\Server\Errors\ErrorBag $errorBag ) : Response
$e Exception
$errorBag NilPortugues\Api\JsonApi\Server\Errors\ErrorBag
return Symfony\Component\HttpFoundation\Response