Skip to content

How to log errors and exceptions #692

Answered by johanjanssens
manojLondhe asked this question in Q&A
Discussion options

You must be logged in to vote

Exceptions in Pages are exposed as events. They can easily be intercepted through event subscribers. Based on the type of exception different event handlers could do different things, for example:

  • handling 404 not found exceptions
  • handling error logging
  • rendering debug information

What exceptions does Pages capture

If Pages is activate all errors and exceptions will be captured, exceptions can be triggered anywhere. Depending on your Joomla exception and error handling settings Pages will also capture exceptions in Joomla extensions and plugins that are triggered in the request/response cycle.

Pages does that by registering itself as a Joomla exception callback handler through: JError::…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johanjanssens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants