- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
33 lines
938 B
PHP
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.');
|
|
}
|
|
}
|