commit fb12fa03ad21c4c8924175ae77bc6bd30139f089
Author: Gary Kotton <email address hidden>
Date: Thu Jan 30 07:10:14 2014 -0800
VMware: raise more specific exceptions
In certain cases the exception handling for backend errors
would be handled too broadly. This patch elevates the backend exception
to the application so that it can treat specific errors.
In the application we can now handle the following specific exceptions:
- FileAlreadyExists - for example when moving a directory to a directory that already exists
- InvalidProperty - for example when using neutron and opaque networks are not supported
- AlreadyExists - for example a port group already exists
- NotAuthenticated - for example the operation is denied as because a session is not established
Reviewed: https:/ /review. openstack. org/70137 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=fb12fa03ad2 1c4c8924175ae77 bc6bd30139f089
Committed: https:/
Submitter: Jenkins
Branch: master
commit fb12fa03ad21c4c 8924175ae77bc6b d30139f089
Author: Gary Kotton <email address hidden>
Date: Thu Jan 30 07:10:14 2014 -0800
VMware: raise more specific exceptions
In certain cases the exception handling for backend errors
would be handled too broadly. This patch elevates the backend exception
to the application so that it can treat specific errors.
In the application we can now handle the following specific exceptions:
that already exists
are not supported
session is not established
- FileAlreadyExists - for example when moving a directory to a directory
- InvalidProperty - for example when using neutron and opaque networks
- AlreadyExists - for example a port group already exists
- NotAuthenticated - for example the operation is denied as because a
Related-Bug: #1266579
Related-Bug: #1266580
Closes-bug: #1276539
Co-authored-by: Matthew Booth <email address hidden> 208c8d9b5bcbb5a 980a7a58f9d
Change-Id: I0873f570d97345