feat: inquiry bookings

This commit is contained in:
Björn Fromme
2025-10-09 18:52:23 +02:00
parent 989f599b54
commit 4939a1a9ad
11 changed files with 360 additions and 4 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace App\Exception;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* Exception thrown when attempting to create a booking for a travel with Buchungsstop status.
*/
class BookingNotPossibleException extends HttpException
{
public function __construct(int $dateId, int $hotelId, ?\Throwable $previous = null)
{
$message = sprintf(
'Für diese Reise ist aktuell keine Buchung möglich (Travel ID: %d, Hotel ID: %d). Status: Buchungsstop',
$dateId,
$hotelId
);
parent::__construct(400, $message, $previous);
}
}