-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
Description
I've been thinking it could be really helpful to add very expressive and robust exceptions when something goes wrong in F2. Here's an example:
Error: "TypeError: undefined is not a function."
Explanation: "F2 was unable to load the AppClass for 'com_example_foo'."
Solution: "Make sure the script containing the AppClass is included and that the AMD module returns the AppClass function."
In a sense, the library's exceptions can be like a tutorial that guides users into the Pit of Success. We'll give them the actual error, what we were doing that caused it, and how we think it might be solved. We can also include links to relevant documentation that could point the user in the right direction.
These could be enabled all the time or through a DEBUG mode.