Fix of method for updating resource.
Errors are sent as Exceptions instead of strings, and error in check for systemvmtype was fixed.
Fixing method calls and checks to support Exceptions.
Adding rescue to exceptions
Merge pull request #16 from katrinnilsson/exceptions

Exceptions