Skip to content

Internals Errors

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

Errors internals

Framework Internals · Developer guide

ExceptionBase extends Exception and seeds a System Context, dispatches context.get when a dispatcher exists, calls subclass buildMessage and appends the previous Throwable message. Wrappers such as AWTException, provider/model/render/manifest exceptions retain causes and domain context; runtime RuntimeException is a separate RuntimeException subclass.

ErrorHandler.fun.php registers the uncaught exception handler and selected shutdown error rendering. CLI output uses ANSI labels, root cause information and up to ten trace frames in DEBUG; uncaught CLI errors exit 1. Web output sets status 500 and uses the debug/error Blade templates with a minimal HTML fallback when rendering fails.

The shutdown path checks only parse/core/compile error categories. The handlers are included only in installed boot. Suppressed warnings, caught View failures and local bootstrap die() paths do not share a single uniform logging/response policy. public/errors templates have their own source reference pages in the Bootstrap subsystem.

Component reference

Clone this wiki locally