Revise exception handling

Created on 28 August 2025, 2 months ago

Problem/Motivation

onKernelResponse uses a try/catch block that logs errors for every exception.
This can, under specific conditions, cause a lot of write operations on a database.
Additionally, the codes should be catching a specific exception, as thrown by the obfuscateMailtoLinks() method.

Steps to reproduce

N/A

Proposed resolution

Use a custom exception class and try catching that instead of the generic \Exception one.

Remaining tasks

1. Write tests that expect a specific exception to be thrown.
2. Refactor code to throw the specific exception

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇨🇭Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024