Refactoring: added base error and runtime exception classes. Removed throwing of exception from controller's method process, and changed exceptions on runtime or error.