23 lines
448 B
PHP
23 lines
448 B
PHP
<?php
|
|
|
|
namespace Bitrix\Main;
|
|
|
|
/**
|
|
* Exception is thrown when function argument is not valid.
|
|
*/
|
|
class ArgumentException extends SystemException
|
|
{
|
|
protected $parameter;
|
|
|
|
public function __construct($message = "", $parameter = "", \Throwable $previous = null)
|
|
{
|
|
parent::__construct($message, 100, '', 0, $previous);
|
|
$this->parameter = $parameter;
|
|
}
|
|
|
|
public function getParameter()
|
|
{
|
|
return $this->parameter;
|
|
}
|
|
}
|