Skip to content

Exceptions

tilttek/fan-awards

Every exception of the library implements Exception\FanAwardsException: catch this one to catch them all.

ExceptionThrown whenMessage
AwardRefusedThe awards' rules refuse the act; refusal says why, reason holds the eligibility's reasonThe refusal's message, below, then the reason
UnknownAwardNo edition holds the key, or the edition no category of the keyNo edition is known as "…"., The edition "…" holds no category "…".
InvalidAwardAn edition, a category or a nominee out of bounds; a final method that is not ranked; a ballot that breaks its phase's rulesWhat is out of bounds; for a ballot, the rule of phil/poll it breaks

AwardRefused extends DomainException, UnknownAward OutOfBoundsException, InvalidAward InvalidArgumentException.

RefusalMessage
EditionExistsAn edition already holds this key.
WrongPhaseThe edition is not in a phase that allows this act.
VoterNotEligibleThis member may not vote in this edition.
IneligibleThis nominee is not eligible in this category.
TooManyCandidatesThe category holds as many nominees as a ballot may offer.
NotCountedThe edition is not counted yet.
NotAnnouncedThe results are published once the winners are announced.