2020-01-11 06:30:25 +00:00
|
|
|
<?php
|
2022-12-14 16:19:55 +00:00
|
|
|
|
2021-11-18 04:24:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020-2021 Антон Аксенов (Anthony Axenov)
|
2020-01-11 06:30:25 +00:00
|
|
|
*
|
|
|
|
* This code is licensed under MIT.
|
|
|
|
* Этот код распространяется по лицензии MIT.
|
|
|
|
* https://github.com/anthonyaxenov/atol-online/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
|
2022-12-14 16:19:55 +00:00
|
|
|
declare(strict_types=1);
|
2021-11-18 04:24:30 +00:00
|
|
|
|
2020-01-11 06:30:25 +00:00
|
|
|
namespace AtolOnline\Exceptions;
|
|
|
|
|
2021-12-12 06:50:29 +00:00
|
|
|
use JetBrains\PhpStorm\Pure;
|
|
|
|
|
2020-01-11 06:30:25 +00:00
|
|
|
/**
|
|
|
|
* Исключение, возникающее при ошибке валидации UUID
|
|
|
|
*/
|
2021-11-18 04:24:30 +00:00
|
|
|
class InvalidUuidException extends AtolException
|
2020-01-11 06:30:25 +00:00
|
|
|
{
|
|
|
|
/**
|
2021-11-22 06:51:10 +00:00
|
|
|
* Конструктор
|
2020-01-11 06:30:25 +00:00
|
|
|
*
|
2021-12-12 06:50:29 +00:00
|
|
|
* @param string $uuid
|
2020-01-11 06:30:25 +00:00
|
|
|
*/
|
2021-12-12 06:50:29 +00:00
|
|
|
#[Pure]
|
|
|
|
public function __construct(string $uuid = '')
|
2020-01-11 06:30:25 +00:00
|
|
|
{
|
2021-12-12 06:50:29 +00:00
|
|
|
parent::__construct('Невалидный UUID: ' . $uuid);
|
2020-01-11 06:30:25 +00:00
|
|
|
}
|
2021-11-22 06:51:10 +00:00
|
|
|
}
|