Exceptions
tilttek/character-retirementEvery exception of the library implements Exception\CharacterRetirementExceptionInterface: catch it to catch them
all. The exceptions of tilttek/character-sheet come through as they are: SheetNotFound when the sheet does not
exist or the rules of its system are not known, InvalidFormula when a formula of its rules cannot be computed.
| Exception | Extends | When |
|---|---|---|
Exception\InvalidEnding | InvalidArgumentException | A value is out of its shape or its bounds: an identifier, a cause, an epitaph, a version, a return before the end, a page of a memorial, a frozen sheet or its plain values. |
Exception\EndingRefused | DomainException | The call is well formed but not allowed: a campaign the sheet did not join, a character that already ended or already came back, a return before the end, a sheet of 50 endings, a campaign of 5 000. |
Exception\EndingNotFound | RuntimeException | No ending has the identifier. |
Exception\EndingConflict | RuntimeException | What is kept changed since it was read: an ending at another version, a new one of a kept identifier, a character ended by another request. The call is made again on what is read anew. |