Removed an unnecessary @class declaration.
Vastly improved error code.

The new system is much cleaner and less error-prone (haha!).