Exception: RubyConversations::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby_conversations/errors.rb

Overview

Error raised when there is an error with the client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code: nil) ⇒ ClientError

Returns a new instance of ClientError.



14
15
16
17
# File 'lib/ruby_conversations/errors.rb', line 14

def initialize(message, status_code: nil)
  super(message)
  @status_code = status_code
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



12
13
14
# File 'lib/ruby_conversations/errors.rb', line 12

def status_code
  @status_code
end