schneespur/schneespur/app/Exceptions/JobLifecycleException.php
Michael b8e426ba2d Restructure: move code into schneespur/ subdirectory, fix Umlauts
- Move all application code into schneespur/ subdirectory for cleaner
  GitHub presentation (README, LICENSE, INSTALL guides stay in root)
- Fix German Umlaut encoding in INSTALL.de.md and README.md
  (ae→ä, oe→ö, ue→ü throughout)
- ZIP download structure remains flat (code in root) for easy deployment
2026-05-17 13:52:39 +00:00

33 lines
938 B
PHP

<?php
namespace App\Exceptions;
use RuntimeException;
class JobLifecycleException extends RuntimeException
{
public static function shiftAlreadyActive(): self
{
return new self('Eine Schicht ist bereits aktiv. Beende die aktuelle Schicht, bevor du eine neue startest.');
}
public static function noActiveShift(): self
{
return new self('Keine aktive Schicht vorhanden. Starte zuerst eine Schicht.');
}
public static function jobAlreadyActive(): self
{
return new self('Ein Einsatz ist bereits aktiv. Beende den aktuellen Einsatz, bevor du einen neuen startest.');
}
public static function noActiveJob(): self
{
return new self('Kein aktiver Einsatz vorhanden.');
}
public static function activeJobMustEndFirst(): self
{
return new self('Ein aktiver Einsatz muss zuerst beendet werden, bevor die Schicht beendet werden kann.');
}
}