Exception: ChatSDK::PlatformError

Inherits:
Error
  • Object
show all
Defined in:
lib/chat_sdk/errors.rb

Direct Known Subclasses

RateLimitedError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status: nil, body: nil, adapter_name: nil)
  @status = status
  @body = body
  @adapter_name = adapter_name
  super(message)
end

Instance Attribute Details

#adapter_nameObject (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

#bodyObject (readonly)

Returns the value of attribute body.



20
21
22
# File 'lib/chat_sdk/errors.rb', line 20

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



20
21
22
# File 'lib/chat_sdk/errors.rb', line 20

def status
  @status
end