Exception: Chatkit::UploadError
- Defined in:
- lib/chatkit/upload_error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#response_object ⇒ Object
Returns the value of attribute response_object.
Instance Method Summary collapse
-
#initialize(error) ⇒ UploadError
constructor
A new instance of UploadError.
- #to_s ⇒ Object
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
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/chatkit/upload_error.rb', line 5 def @message end |
#response_object ⇒ Object
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_s ⇒ Object
12 13 14 |
# File 'lib/chatkit/upload_error.rb', line 12 def to_s "Chatkit::MissingParameterError - #{@message}" end |