first commit
This commit is contained in:
11
exceptions/CreateFormException.php
Normal file
11
exceptions/CreateFormException.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace itguild\forms\form\exceptions;
|
||||
|
||||
class CreateFormException extends \Exception
|
||||
{
|
||||
function __construct(string $msg)
|
||||
{
|
||||
$this->message = "Create form error: " . $msg;
|
||||
}
|
||||
}
|
13
exceptions/FieldTypeNotFound.php
Normal file
13
exceptions/FieldTypeNotFound.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace itguild\forms\form\exceptions;
|
||||
|
||||
class FieldTypeNotFound extends \Exception
|
||||
{
|
||||
|
||||
function __construct(string $type)
|
||||
{
|
||||
$this->message = "Тип поля $type не найден";
|
||||
}
|
||||
|
||||
}
|
11
exceptions/FormNotFoundException.php
Normal file
11
exceptions/FormNotFoundException.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace itguild\forms\form\exceptions;
|
||||
|
||||
class FormNotFoundException extends \Exception
|
||||
{
|
||||
function __construct($formId)
|
||||
{
|
||||
$this -> message = "Форма $formId не найдена";
|
||||
}
|
||||
}
|
11
exceptions/FormResultNotFoundException.php
Normal file
11
exceptions/FormResultNotFoundException.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace itguild\forms\form\exceptions;
|
||||
|
||||
class FormResultNotFoundException extends \Exception
|
||||
{
|
||||
function __construct($id)
|
||||
{
|
||||
$this -> message = "Ответ формы $id не найдена";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user