Juan Hernandez has submitted this change and it was merged.
Change subject: Improve error handling
......................................................................
Improve error handling
This patch improves the error handling of the SDK, so that services will
check the results received from the server and transform them into the
corresponding exceptions.
Change-Id: I55903e5278d3405c214e5c2380df9d389f780391
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M generator/src/main/java/org/ovirt/sdk/ruby/ReadersGenerator.java
M generator/src/main/java/org/ovirt/sdk/ruby/RubyNames.java
M generator/src/main/java/org/ovirt/sdk/ruby/ServicesGenerator.java
M generator/src/main/java/org/ovirt/sdk/ruby/TypesGenerator.java
M sdk/examples/add_cluster.rb
M sdk/examples/add_data_center.rb
M sdk/examples/add_host.rb
M sdk/examples/add_nfs_data_storage_domain.rb
M sdk/examples/add_nfs_iso_storage_domain.rb
M sdk/examples/add_vm.rb
M sdk/examples/add_vm_disk.rb
M sdk/examples/add_vm_nic.rb
M sdk/examples/attach_nfs_data_storage_domain.rb
M sdk/examples/attach_nfs_iso_storage_domain.rb
M sdk/examples/list_vms.rb
A sdk/examples/remove_host.rb
M sdk/examples/remove_vm.rb
M sdk/examples/search_vms.rb
M sdk/examples/start_vm.rb
M sdk/examples/stop_vm.rb
A sdk/examples/update_data_center.rb
A sdk/lib/ovirt/sdk/v4/readers/action_reader.rb
M sdk/lib/ovirt/sdk/v4/services/service.rb
A sdk/lib/ovirt/sdk/v4/types/action.rb
A sdk/spec/action_reader_spec.rb
A sdk/spec/service_spec.rb
26 files changed, 683 insertions(+), 170 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved; Passed CI tests
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/52459
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I55903e5278d3405c214e5c2380df9d389f780391
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>