public static function projectorDidNotWriteAnythingToSnapshot(Projector $projector)
11
{
12
return new static("The projector named {$projector->getName()} didn't write to the snapshot. When snapshotting a projector should write it's state to the snapshot.");
13
}
14
15
public static function projectorThrewExceptionDuringWritingToSnapshot(Projector $projector, Exception $exception)
16
{
17
return new static("The projector named {$projector->getName()} threw an exception while writing to a snapshot", 0, $exception);