jalismrs/common.exception

1.0.2 2021-03-04 10:49 UTC

This package is auto-updated.

Last update: 2024-05-04 17:46:43 UTC


README

Adds Exception classes

  • AppException
  • EntityException
  • Entity\NotFoundException
  • ServiceException
  • Service\ApiException

NOTES

  • Entity\NotFoundException: $code is always 404

Test

phpunit or vendor/bin/phpunit

coverage reports will be available in var/coverage

Use

Entity\NotFoundException

use Jalismrs\Common\Exception\Entity\NotFoundException;

throw NotFoundException::create(
    SomeClass::class,
    'some identifier'
);