# symfony/error-handler

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/symfony-error-handler).**

2,677 stars · 20 forks · PHP · MIT

## Links

- GitHub: https://github.com/symfony/error-handler
- Homepage: https://symfony.com/error-handler
- awesome-repositories: https://awesome-repositories.com/repository/symfony-error-handler.md

## Topics

`component` `php` `symfony` `symfony-component`

## Description

This library provides a structured framework for managing runtime failures and debugging within PHP applications. It functions by intercepting native language errors, warnings, and system signals, converting them into catchable, object-oriented exceptions to ensure consistent control flow throughout the application lifecycle.

The project distinguishes itself by normalizing raw execution backtraces and providing a transformation layer that standardizes how system failures are reported. It includes specialized tools for monitoring the class loading process, ensuring that dependency resolution issues are identified and reported with descriptive feedback. Furthermore, it performs static analysis during runtime to detect the usage of deprecated code patterns, assisting in the maintenance of long-term project stability.

Beyond core error management, the library offers comprehensive diagnostic capabilities, including the ability to render structured, human-readable error pages and detailed stack traces. It allows for the configuration of debugging environments to adjust the level of detail captured in logs and displayed during development, facilitating the identification and resolution of issues across various execution contexts.

## Tags

### Development Tools & Productivity

- [PHP Application Debuggers](https://awesome-repositories.com/f/development-tools-productivity/php-application-debuggers.md) — Identifies and resolves runtime errors by transforming system failures into structured exceptions and displaying detailed stack traces.
- [Runtime Debugging Tools](https://awesome-repositories.com/f/development-tools-productivity/php-development-tools/runtime-debugging-tools.md) — Provides a set of tools for inspecting runtime environments, detecting deprecated code, and formatting stack traces.

### Web Development

- [PHP Error-to-Exception Converters](https://awesome-repositories.com/f/web-development/global-error-handlers/php-error-to-exception-converters.md) — Provides a global error handler that converts native PHP errors and warnings into catchable exceptions for consistent application control flow.
- [Error Page Rendering](https://awesome-repositories.com/f/web-development/global-error-handlers/php-error-to-exception-converters/error-page-rendering.md) — Creates formatted HTML or serialized responses using custom templates to provide clear information when an application encounters a failure. ([source](https://github.com/symfony/error-handler/blob/8.2/CHANGELOG.md))

### Programming Languages & Runtimes

- [PHP Exception Handlers](https://awesome-repositories.com/f/programming-languages-runtimes/php-exception-handlers.md) — Intercepts runtime exceptions and system errors to provide detailed diagnostic output, stack traces, and custom error page rendering.
- [Deprecated Feature Markings](https://awesome-repositories.com/f/programming-languages-runtimes/deprecated-feature-markings.md) — Monitors runtime execution to identify and log the usage of outdated language features or deprecated code patterns.
- [Class Loading Interception](https://awesome-repositories.com/f/programming-languages-runtimes/dynamic-class-creation/class-loading-mechanisms/class-loading-interception.md) — Hooks into the language autoloader to validate file existence and provide descriptive feedback when dependency resolution fails.
- [PHP Code Analysis](https://awesome-repositories.com/f/programming-languages-runtimes/php-code-analysis.md) — Detects deprecated methods and invalid code structures to ensure long-term stability and adherence to modern standards.

### Software Engineering & Architecture

- [Exception Transformation Layers](https://awesome-repositories.com/f/software-engineering-architecture/error-handling/exception-logic-structures/exception-hierarchies/exception-type-enforcers/exception-flow-annotators/exception-transformation-layers.md) — Wraps low-level system failures and suppressed error signals into unified exception types to ensure predictable control flow.
- [Terminal Error Formatting](https://awesome-repositories.com/f/software-engineering-architecture/error-handling/format-error-translators/terminal-error-formatting.md) — Presents detailed exception traces and error information in a readable layout to help pinpoint the root cause of failures. ([source](https://symfony.com/error-handler))
- [Runtime Error Management](https://awesome-repositories.com/f/software-engineering-architecture/runtime-error-management.md) — Intercepts unexpected exceptions and system errors to convert them into structured objects that simplify logging and debugging. ([source](https://symfony.com/error-handler))

### Data & Databases

- [Trace Format Normalization](https://awesome-repositories.com/f/data-databases/data-format-converters/trace-format-normalization.md) — Processes raw execution backtraces into structured data formats to provide consistent and readable debugging information.

### Testing & Quality Assurance

- [Custom Error Pages](https://awesome-repositories.com/f/testing-quality-assurance/debugging-diagnostics/error-handling/custom-error-pages.md) — Creates user-friendly and informative error responses for web applications to handle unexpected failures gracefully.
- [Code Quality and Security Reports](https://awesome-repositories.com/f/testing-quality-assurance/general-testing-utilities/test-reporters/summary-reports/code-quality/code-quality-and-security-reports.md) — Identifies and reports the usage of outdated methods or invalid structures during development to maintain code quality. ([source](https://github.com/symfony/error-handler/blob/8.2/CHANGELOG.md))
