Bitrix Site Manager

CMain::ResetException

CMain::ResetException()

The method ResetException resets the last exception.

See Also

Example



<?
$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");
}
?>