Added and improved error handling in controller class

Error enums added and implemented together with examples.

Change-Id: I912c396080ee9a6b87f41104eb7e41f8c62abf8b
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>