3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-08-18 03:06:23 +00:00
Files
snipe-it/app/Exceptions/NoActiveCheckoutRequest.php
2026-08-07 17:43:15 +01:00

15 lines
392 B
PHP

<?php
namespace App\Exceptions;
use Exception;
/**
* Thrown by CancelCheckoutRequestAction when the caller has no active
* (not-yet-canceled) CheckoutRequest to cancel. Prevents the shared
* requests_counter from being decremented on no-op cancellations,
* which used to drive it negative and out of sync with the admin
* queue.
*/
class NoActiveCheckoutRequest extends Exception {}