Exception: MessageBird::ErrorException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/messagebird/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ErrorException

Returns a new instance of ErrorException.



38
39
40
41
42
43
# File 'lib/messagebird/client.rb', line 38

def initialize(errors)
  super()
  @errors = errors
  message = errors.map(&:message).join(', ')
  super(message)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



36
37
38
# File 'lib/messagebird/client.rb', line 36

def errors
  @errors
end