Exception: MandrillQueue::MandrillValidationError
- Defined in:
- lib/mandrill_queue/errors.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ MandrillValidationError
constructor
A new instance of MandrillValidationError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ MandrillValidationError
Returns a new instance of MandrillValidationError.
5 6 7 8 |
# File 'lib/mandrill_queue/errors.rb', line 5 def initialize(errors) @_errors = errors super() end |
Instance Method Details
#message ⇒ Object
10 11 12 13 14 15 |
# File 'lib/mandrill_queue/errors.rb', line 10 def <<-TXT Validation Errors: #{@_errors.inject(''){ |s, (name, e)| s += "\n- [#{name}]: #{e}" }} TXT end |