Skip to content

Exceptions

tilttek/rating

Every exception of the library implements Tilttek\Rating\Exception\RatingException.

ExceptionRaised whenMessage, for instance
InvalidRatingAn identifier, a result, a setting of a system, a limit of the standings or stored values are refused, or a source gives a result of another game, out of order or twiceA result has 2 to 64 sides.
RatingRefusedThe ratings of a game were computed by another system, a rating of another system is asked whether it is provisional, or a replay has no source of resultsThe ratings of the game chess were computed by the system elo; replay the game to rate it with the system openskill-pl.
ResultAlreadyRecordedA result its game counts already, its events all delivered, is recorded again: a double click, or a message delivered twiceThe result play-81 of the game chess is recorded already.
RatingConflictA rating changed or was added since it was read: another result of the same members was recorded at onceThe rating of the member member-1042 for the game chess changed since it was read.

InvalidRating extends InvalidArgumentException, RatingRefused and ResultAlreadyRecorded extend DomainException, and RatingConflict extends RuntimeException.