Skip to content

Exceptions

tilttek/writing-goals

Every exception of the library implements Tilttek\WritingGoals\Exception\WritingGoalsException.

ExceptionRaised whenMessage, for instance
InvalidGoalAn identifier, a target, a span of days, a timezone, a date, a curve, a day of the week, a count or a day without writing is refused, or a count is logged on a day that has not comeA goal lasts 1 to 3660 days, its first and last included; from 2026-11-01 to 2026-10-31 is not one.
UnknownGoalA goal is asked for by an identifier the store does not knowNo goal has the identifier "novel-2026".