Skip to content

#62 - Throw exceptions implementing ProcessExceptionInterface instead of raw SPL exceptions - #63

Merged
njoubert-cleverage merged 1 commit into
mainfrom
62
Oct 20, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
62

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #62, as cleverage/process-bundle#317 (PR cleverage/process-bundle#321).

  • New exceptions in Exception/, extending the SPL exceptions thrown until now and implementing CleverAge\ProcessBundle\Exception\ProcessExceptionInterface (available since process-bundle 4.0, as MissingClientException of soap): Exception\UnexpectedValueException, Exception\InvalidArgumentException, Exception\RuntimeException.
  • The 9 throw new \<SPL exception> of src/ use them: same messages and codes. The exceptions of the Symfony components are not concerned.
  • CHANGELOG.

Tests: SplExceptionsTest (each exception extends its SPL class and implements the interface). The existing tests pass unchanged.

Checked in the container (PHP 8.5, highest dependencies): 49 tests, 100 % of the lines, no risky test (pcov coverage). PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: the new exceptions extend the classes thrown until now, the existing catch keep working.

🤖 Generated with Claude Code

… of raw SPL exceptions

As cleverage/process-bundle#317: new exceptions of the bundle extending
the SPL exceptions thrown before and implementing ProcessExceptionInterface
(9 throw replaced, same messages). Tests and CHANGELOG updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit b32ffc3 into main Oct 20, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw exceptions implementing ProcessExceptionInterface instead of raw SPL exceptions

1 participant