ResetException
CMain::ResetException()
The method resets the last exception. Non-static method.
See Also
Example of use
<? $events = GetModuleEvents("main", "OnAfterUserLogin");
while($arEvent = $events->Fetch())
{
$APPLICATION->ResetException();
ExecuteModuleEvent($arEvent, $login, $password, $remember, $USER_ID);
if($err = $APPLICATION->GetException())
$RESULT_MESSAGE = Array("MESSAGE"=>$err->GetString()."<br>", "TYPE"=>"ERROR");
}
?>
© «Bitrix24», 2001-2024