[*] опеределан класс исключений

[*] мелкие правки
This commit is contained in:
rsgrinko committed 2023-05-23 22:49:28 +03:00
1 parent abe300ec42
commit ec2805efd5
10 files changed
+448 -12

No files matched your search

+4 -3
View File
@@ -19,6 +19,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
use Core\CoreException;
use Core\Models\{User, Roles};
require_once __DIR__ . '/inc/header.php';
@@ -167,12 +168,12 @@
} catch (ParseError $p) {
echo '<div class="alert alert-danger"><p><strong>(ParseError)</strong> Ошибка парсинга: ' . $p->getMessage()
. '</p></div>';
} catch (CoreException $e) {
$e->showTrace();
$e->showDetailTrace();
} catch (Throwable $e) {
echo '<div class="alert alert-danger"><p><strong>(Throwable)</strong> Ошибка при выполнении: ' . $e->getMessage()
. '</p></div>';
} catch (Error $e) {
echo '<div class="alert alert-danger"><p><strong>(Error)</strong> Ошибка при выполнении: ' . $e->getMessage()
. '</p></div>';
}
echo '</p>';