Exception: MandrillQueue::MandrillValidationError

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

Instance Method Summary collapse

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(message)
end

Instance Method Details

#messageObject



10
11
12
13
14
15
# File 'lib/mandrill_queue/errors.rb', line 10

def message
	<<-TXT
	Validation Errors:
	#{@_errors.inject(''){ |s, (name, e)| s += "\n- [#{name}]: #{e}" }}
	TXT
end