Exception: RubyConversations::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyConversations::ClientError
- Defined in:
- lib/ruby_conversations/errors.rb
Overview
Error raised when there is an error with the client
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code: nil) ⇒ ClientError
constructor
A new instance of ClientError.
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(, status_code: nil) super() @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (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 |