Skip to content

Exceptions

tilttek/stickers

Every exception of the library implements Tilttek\Stickers\Exception\StickersException. StickerSheets lets the exceptions of tilttek/sets through: UnknownSet for a sheet never defined.

ExceptionRaised whenMessage, for instance
InvalidStickerA code, an image reference, a text alternative, a licence, an attribution, a transform, limits, a holder, a surface or a moderation reason is refused, or a placement request does not readThe text alternative of a sticker is 1 to 250 characters of UTF-8, without control characters.
StickerRefusedA sticker unknown, retired or not owned, a surface not the holder's, a transform outside the site's limits, a limit reached, or a placement not the holder'sA surface holds at most 12 stickers on this site.
UnknownPlacementA placement that does not exist, or no longer doesThere is no placement "4f1c…".

InvalidSticker extends InvalidArgumentException; the others extend RuntimeException.