CMain::ThrowException( mixed msg, mixed id = false )
The method ThrowException throws an exception msg with the specified id. You can obtain the last exception by calling $APPLICATION->GetException().
Parameter | Description |
---|---|
msg | Error description or an instance of class inherited from CApplicationException. |
id | Error identifier. |
<? if($login=='') { global $APPLICATION; $APPLICATION->ThrowException('Login must not be empty.'); return false; } ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |