Skip to content

Exceptions

tilttek/activity

Every exception of the library implements Tilttek\Activity\Exception\ActivityException.

ExceptionRaised whenMessage, for instance
InvalidActivityA verb, a pattern, a key, a context, a quantity, a moment outside the years 1970 to 9999 or the journal's window, a position, a read or a batch size is refused"Game.played" is not a verb: lower-case segments of letters, digits and "_", each starting with a letter, joined by dots, such as "game.played".
IdempotencyConflictA key already recorded is recorded again for another gestureThe idempotency key "k" is already recorded for another gesture.
UnknownVerbThe verbs are declared and the activity's verb is not one of themThe verb "news.read" is not declared.
UnknownProjectionA projection is asked for by a name none hasNo projection is named "quests".
InvalidProjectionA projection name is not one, or two projections share itTwo projections are named "points".