Skip to content

Exceptions

tilttek/character-retirement

Every 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.

ExceptionExtendsWhen
Exception\InvalidEndingInvalidArgumentExceptionA 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\EndingRefusedDomainExceptionThe 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\EndingNotFoundRuntimeExceptionNo ending has the identifier.
Exception\EndingConflictRuntimeExceptionWhat 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.