Implemented error handling

* Errors are now handled, and parsed, and turned into Java exceptions (stack trace and all!)