Hi, I'm new to CKFinder.
I'd like to know how to handle errors when they occure.
Currently, when an exception occures, the full stack trace is displayed in a popup, on the client side! Is it possible to prevent those popups and to provide a custom handler method instead?
Thanks in advance.
I'd like to know how to handle errors when they occure.
Currently, when an exception occures, the full stack trace is displayed in a popup, on the client side! Is it possible to prevent those popups and to provide a custom handler method instead?
Thanks in advance.
Re: How to handle errors?
Hello.
This is more like a general JavaScript issue and not a CKE issue per se. I do my uncatched error handling like this answer on StackOverflow: http://stackoverflow.com/a/5328206/694325 - it is also userful to extend that so that it logs to server via AJAX if you want to. Of course, I would love to catch all errors in dev/testing and have custom error handling for each predictable error, but this method works for those uncatched errors.
Re: How to handle errors?
Thanks for the help req.
I actually solved my problem by implementing a special WebExceptionHandler for CKFinder (I use Java and Spring MVC). I now return an appropriate http code and a simple message (that can be displayed to the end user) when an exception occured in the CKFinder servlet.
Re: How to handle errors?