Converting exception to nice error at XenAPI level

Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Merge pull request #9 from djs55/resync-with-xen-api

Converting exception to nice error at XenAPI level