Exception: Chatkit::UploadError

Inherits:
Error
  • Object
show all
Defined in:
lib/chatkit/upload_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ UploadError

Returns a new instance of UploadError.



7
8
9
10
# File 'lib/chatkit/upload_error.rb', line 7

def initialize(error)
  @message = error[:message]
  @response_object = error[:response_object]
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/chatkit/upload_error.rb', line 5

def message
  @message
end

#response_objectObject

Returns the value of attribute response_object.



5
6
7
# File 'lib/chatkit/upload_error.rb', line 5

def response_object
  @response_object
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/chatkit/upload_error.rb', line 12

def to_s
  "Chatkit::MissingParameterError - #{@message}"
end