Exception: ImageInspectorClient::InspectorClientException
- Inherits:
-
StandardError
- Object
- StandardError
- ImageInspectorClient::InspectorClientException
- Defined in:
- lib/image-inspector-client.rb
Overview
Exception thrown by this module
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error_code, message) ⇒ InspectorClientException
constructor
A new instance of InspectorClientException.
- #to_s ⇒ Object
Constructor Details
#initialize(error_code, message) ⇒ InspectorClientException
Returns a new instance of InspectorClientException.
91 92 93 94 |
# File 'lib/image-inspector-client.rb', line 91 def initialize(error_code, ) @error_code = error_code @message = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
89 90 91 |
# File 'lib/image-inspector-client.rb', line 89 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
89 90 91 |
# File 'lib/image-inspector-client.rb', line 89 def @message end |
Instance Method Details
#to_s ⇒ Object
96 97 98 |
# File 'lib/image-inspector-client.rb', line 96 def to_s 'HTTP status code ' + @error_code.to_s + ', ' + @message end |