Exception: Deckle::ValidationError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #message, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Validation failed") ⇒ ValidationError

Returns a new instance of ValidationError.



31
32
33
# File 'lib/deckle/errors.rb', line 31

def initialize(message = "Validation failed")
  super(message, status_code: 400, code: "VALIDATION_ERROR")
end