20250711 1.1.1 Beta 3
This commit is contained in:
		
							
								
								
									
										36
									
								
								sources/exceptions/TypeException.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								sources/exceptions/TypeException.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| <?php | ||||
|  | ||||
| namespace goodboyalex\php_components_pack\exceptions; | ||||
|  | ||||
| use Exception; | ||||
|  | ||||
| /** | ||||
|  * Ошибка работы с расширением типов. | ||||
|  * | ||||
|  * @author Александр Бабаев | ||||
|  * @package php_components_pack | ||||
|  * @version 1.0 | ||||
|  * @since 1.1.1 | ||||
|  */ | ||||
| final class TypeException extends Exception | ||||
| { | ||||
|     /** | ||||
|      * @var string $TypeName Имя типа. | ||||
|      */ | ||||
|     public string $TypeName; | ||||
|  | ||||
|     /** | ||||
|      * Конструктор. | ||||
|      * | ||||
|      * @param string $typeName Имя типа. | ||||
|      * @param string $message Сообщение об ошибке. | ||||
|      */ | ||||
|     public function __construct (string $typeName = "", string $message = "") | ||||
|     { | ||||
|         // Запускаем базовый конструктор | ||||
|         parent::__construct($message); | ||||
|  | ||||
|         // Присваиваем тип | ||||
|         $this->TypeName = $typeName; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user