Exception: Crowdkit::ValidationError
- Defined in:
- lib/crowdkit/error.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from UserError
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
26 27 28 29 30 31 32 33 34 |
# File 'lib/crowdkit/error.rb', line 26 def initialize(errors) super( ( :problem => "Attempted to send request with nil arguments for #{errors.keys.join(', ')}.", :summary => 'Each request expects certain number of required arguments.', :resolution => 'Double check that the provided arguments are set to some value that is neither nil nor empty string.' ) ) end |