Fatal error: require_once(): Failed opening required '/home/bitrix/www/local/modules/custom.module/lib/exception.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/bitrix/www/bitrix/modules/main/lib/loader.php on line 313 PHP Fatal error: Uncaught Error: Class 'Bitrix\Main\Diag\ExceptionHandlerLog' not found in /home/bitrix/www/bitrix/modules/main/lib/diag/exceptionhandler.php:350
If you break apart your string ".:/usr/share/pear:/usr/share/php" using that character, you will get 3 parts
. (this means the current directory your code is in)
/usr/share/pear
/usr/share/ph
Any attempts to include()/require() things, will look in these directories, in this order.
/home/bitrix/www/local/modules/custom.module/lib/exception.php
/home/bitrix/www/bitrix/modules/main/lib/loader.php