Глава 34: корректура

This commit is contained in:
Igor Simdyanov
2022-07-31 10:34:10 +03:00
parent 23e6566c54
commit 636f971ad6
13 changed files with 31 additions and 66 deletions

View File

@ -1,18 +1,12 @@
<?php
try
{
try {
$code = rand(0, 1);
if (!$code)
{
if (!$code) {
throw new Exception('Первая точка входа', $code);
}
else
{
} else {
throw new Exception('Вторая точка входа', $code);
}
}
catch(Exception $exp)
{
} catch (Exception $exp) {
echo "Исключение {$exp->getCode()} : {$exp->getMessage()}<br />";
echo "в файле {$exp->getFile()}<br />";
echo "в строке {$exp->getLine()}<br />";