Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Exception Handling #48

Open
2 tasks
mbabker opened this issue Apr 4, 2019 · 0 comments
Open
2 tasks

Refactor Exception Handling #48

mbabker opened this issue Apr 4, 2019 · 0 comments

Comments

@mbabker
Copy link
Contributor

mbabker commented Apr 4, 2019

  • Change exceptions to custom exception subclasses for the component
    • Probably need to set up an autoloaded path for the component so the code isn't getting littered full of JLoader::register() calls
  • Change controller to catch these exceptions (actually, just catch everything thrown when executing the component and keep it simple) and convert to a JSON response, not relying on Joomla's error handling layer because of the global exception handler being a rigid HTML format until 4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant