Exception: ImageInspectorClient::InspectorClientException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/image-inspector-client.rb

Overview

Exception thrown by this module

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @error_code = error_code
  @message = message
end

Instance Attribute Details

#error_codeObject (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

#messageObject (readonly)

Returns the value of attribute message.



86
87
88
# File 'lib/image-inspector-client.rb', line 86

def message
  @message
end

Instance Method Details

#to_sObject



93
94
95
# File 'lib/image-inspector-client.rb', line 93

def to_s
  'HTTP status code ' + @error_code.to_s + ', ' + @message
end