Exception: Chatkit::UnexpectedParameterError

Inherits:
Error
  • Object
show all
Defined in:
lib/chatkit/unexpected_parameter_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ UnexpectedParameterError

Returns a new instance of UnexpectedParameterError.



7
8
9
# File 'lib/chatkit/unexpected_parameter_error.rb', line 7

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/chatkit/unexpected_parameter_error.rb', line 5

def message
  @message
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/chatkit/unexpected_parameter_error.rb', line 11

def to_s
  "Chatkit::UnexpectedParameterError - #{@message}"
end