Hi everyone, I am just getting started on javascript, and I have experience in developing systems in other platforms and languages.
The problems people have with javascript are well known, so i would not repeat them here. But my question is, why isn't there a framework yet for handling error cases?
I can imagine a simple library that catches all exceptions, and handles them in a centralized manner
- throws an dialog with all the required variables (in dev environments when a certain var is set)
- ajax call that triggers an REST action (so that an email can be sent to the developers)
- ignore cases (ignores IE6, known errors, etc)
- allow for namespace segmentation, so different namespaces can be handled differently
For example, (1) Will allow easy outsourcing of testing, cause you can essentially get testers from anywhere and get them to record whatever alert messages come up, which will essentially contain all the required conditions
(2) Will catch the production exceptions, and send you an email, but you can ignore cases you want to ignore.
Does this make sense to you guys? Criticize away!