Skip to content

[3.0] Add logException to ErrorHandler#9183

Merged
Sesquipedalian merged 2 commits intoSimpleMachines:release-3.0from
jdarwood007:3.0/logExceptions
Apr 19, 2026
Merged

[3.0] Add logException to ErrorHandler#9183
Sesquipedalian merged 2 commits intoSimpleMachines:release-3.0from
jdarwood007:3.0/logExceptions

Conversation

@jdarwood007
Copy link
Copy Markdown
Member

We can now call errorHandler::LogException(\Exception) and have SMF handle the work of putting the pieces together to log the data.

Additionally a new known_exception_types map is added to allow us to natively map some known or excepted types to the known_error_types. This wasn't passed into our hooks as we want to carefully add to this list since a generalization of a exception class to a error type may lead to false categorization.

We can now call errorHandler::LogException(\Exception) and have SMF handle the work of putting the pieces together to log the data.

Additionally a new known_exception_types map is added to allow us to natively map some known or excepted types to the known_error_types.  This wasn't passed into our hooks as we want to carefully add to this list since a generalization of a exception class to a error type may lead to false categorization.
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Apr 11, 2026
Comment thread Sources/Services/ErrorHandlerService.php Outdated
Co-authored-by: John Rayes <live627@gmail.com>
@Sesquipedalian Sesquipedalian merged commit 41e8b14 into SimpleMachines:release-3.0 Apr 19, 2026
4 checks passed
@jdarwood007 jdarwood007 deleted the 3.0/logExceptions branch April 19, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants