R
R
Roman2018-03-21 18:02:20
PHP
Roman, 2018-03-21 18:02:20

How to competently organize the interception of errors and exceptions?

Good day.
What is the best way to organize the handling of errors and exceptions of all kinds and colors in a project?
Just throw exceptions and register your own exception handler, or throw exceptions and then catch them during operation?
Where to catch exceptions, inside methods, that is, when describing a class, or wrap all call code in try?
Is it possible to somehow catch parser and syntax level errors?
Maybe there are other techniques or tips for organizing this whole kitchen in the project?
Thanks for the replies.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay, 2018-03-21
@iNickolay

Recently it was

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question