Documentation

ArgumentNullException Constructor

 public
\Bitrix\Main\ArgumentNullException::__construct(
   $parameter,
   \Exception $previous = null
);

This non-static method is called when creating a class instance and allows to modify it when creating an object. Constructor receives the parameter and automatically generates a message.

Parameter

ParameterDescriptionVersion
$parameterParameter. Cannot be empty.
$previousPrevious exception. Used to build chain of exceptions.

Examples



© «Bitrix24», 2001-2024
Up