Skip to content

Exceptions

tilttek/badges

Every exception of the library implements Tilttek\Badges\Exception\BadgesException: catch it to catch them all.

ExceptionExtendsRaised when
InvalidBadgeInvalidArgumentExceptionA badge, criterion, tier, catalog, progress, award, profile or application name does not hold together; the message says what is wrong
UnknownBadgeOutOfBoundsExceptionA code the catalog does not hold: No badge is named "gold".
NotEarnedDomainExceptionA badge the member has not earned is shown, featured, worn, shared or issued: member:44 has not earned the badge "gold".
AccessDeniedRuntimeExceptionAnother application reads a member's badges without their consent: member:44 has not allowed "portfolio" to read their badges.