feat: inquiry bookings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user