Class: ActiveResource::ClientError
- Inherits:
-
ConnectionError
- Object
- ConnectionError
- ActiveResource::ClientError
- Defined in:
- lib/open_stack/base.rb
Overview
Reopen ActiveResource::ClientError to add the proper parsing for OpenStack errors
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/open_stack/base.rb', line 79 def decoded_error = decode_openstack_error decoded_error.nil? ? @message : decoded_error rescue Exception => e # Fallback to the original method @message end |
#old_message ⇒ Object
76 |
# File 'lib/open_stack/base.rb', line 76 alias |
#old_to_s ⇒ Object
77 |
# File 'lib/open_stack/base.rb', line 77 alias old_to_s to_s |
#to_s ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/open_stack/base.rb', line 87 def to_s decoded_error = decode_openstack_error decoded_error.nil? ? old_to_s : decoded_error rescue Exception => e # Fallback to the original method old_to_s end |