- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/requisite/invoicerequisiteconvertexception.php
- Класс: Bitrix\Crm\Requisite\InvoiceRequisiteConvertException
- Вызов: InvoiceRequisiteConvertException::__construct
public function __construct($presetID = 0, $personTypeID, $code = 0, $file = '', $line = 0, \Exception $previous = null)
{
$this->presetID = $presetID;
$this->personTypeID = $personTypeID;
if($code === self::PRESET_NOT_BOUND)
{
$message = "There are no fields of preset to bind to invoice properties.";
}
elseif($code === self::PROPERTY_NOT_FOUND)
{
$message = "There are no required properties of invoice to process.";
}
else
{
$message = 'General error';
}
parent::__construct($message, $code, $file, $line, $previous);
}