PHP & Zend Engine (50 Qs)•Part 1: Core Language, Execution Lifecycle & Types (1 - 10)
How does the Error and Throwable hierarchy work in modern PHP?
junior LevelLifecycle
In Simple Words:
All exceptions and fatal errors implement the Throwable interface.
Exception: Base class for developer-handled application exceptions.Error: Base class for internal engine fatal errors (e.g.,TypeError,ParseError,DivisionByZeroError), allowing fatal engine issues to be caught intry/catchblocks.