Exception: ChatSDK::PlatformError
- Defined in:
- lib/chat_sdk/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#adapter_name ⇒ Object
readonly
Returns the value of attribute adapter_name.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, body: nil, adapter_name: nil) ⇒ PlatformError
constructor
A new instance of PlatformError.
Constructor Details
#initialize(message, status: nil, body: nil, adapter_name: nil) ⇒ PlatformError
Returns a new instance of PlatformError.
21 22 23 24 25 26 |
# File 'lib/chat_sdk/errors.rb', line 21 def initialize(, status: nil, body: nil, adapter_name: nil) @status = status @body = body @adapter_name = adapter_name super() end |
Instance Attribute Details
#adapter_name ⇒ Object (readonly)
Returns the value of attribute adapter_name.
20 21 22 |
# File 'lib/chat_sdk/errors.rb', line 20 def adapter_name @adapter_name end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
20 21 22 |
# File 'lib/chat_sdk/errors.rb', line 20 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
20 21 22 |
# File 'lib/chat_sdk/errors.rb', line 20 def status @status end |