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.
88 89 90 91 |
# File 'lib/image-inspector-client.rb', line 88 def initialize(error_code, ) @error_code = error_code @message = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
86 87 88 |
# File 'lib/image-inspector-client.rb', line 86 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
86 87 88 |
# File 'lib/image-inspector-client.rb', line 86 def @message end |
Instance Method Details
#to_s ⇒ Object
93 94 95 |
# File 'lib/image-inspector-client.rb', line 93 def to_s 'HTTP status code ' + @error_code.to_s + ', ' + @message end |