Exception: MessageBird::ErrorException
- Inherits:
-
StandardError
- Object
- StandardError
- MessageBird::ErrorException
- Defined in:
- lib/messagebird/client.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ErrorException
constructor
A new instance of ErrorException.
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 = errors.map(&:message).join(', ') super() end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
36 37 38 |
# File 'lib/messagebird/client.rb', line 36 def errors @errors end |