Bitrix Site Manager

CMain::GetException

CApplicationException
CMain::GetException();

The method GetException returns an instance of the CApplicationException class containing the last exception.

Parameters

No parameters.

Return Values

Instance of the CApplicationException class.

See Also

Example



<?
if(!$langs->Delete($del_id))
{
   if($ex = $APPLICATION->GetException())
      $strError = $ex->GetString();
}
?>