Exception: ChatSDK::NotSupportedError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capability, adapter_name) ⇒ NotSupportedError

Returns a new instance of NotSupportedError.



9
10
11
12
13
# File 'lib/chat_sdk/errors.rb', line 9

def initialize(capability, adapter_name)
  @capability = capability
  @adapter_name = adapter_name
  super("#{adapter_name} adapter does not support #{capability}")
end

Instance Attribute Details

#adapter_nameObject (readonly)

Returns the value of attribute adapter_name.



8
9
10
# File 'lib/chat_sdk/errors.rb', line 8

def adapter_name
  @adapter_name
end

#capabilityObject (readonly)

Returns the value of attribute capability.



8
9
10
# File 'lib/chat_sdk/errors.rb', line 8

def capability
  @capability
end