Documentation

ArgumentTypeException constructor

 public
\Bitrix\Main\ArgumentTypeException::__construct(
 string $parameter,
 string $requiredType = "",
 \Exception $previous = null
);

This non-static methods called when creating a class instance and allows to modify it, when creating an object.

Parameters

ParameterDescriptionVersion
$parameterArgument that created an exception
$requiredTypeRequired type
$previousPrevious exception. Used to build chain of exceptions.

Examples



© «Bitrix24», 2001-2022
Up