Exception: Stove::Error::ValidationFailed

Inherits:
StoveError
  • Object
show all
Defined in:
lib/stove/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, id, options = {}) ⇒ ValidationFailed

Returns a new instance of ValidationFailed.



15
16
17
# File 'lib/stove/error.rb', line 15

def initialize(klass, id, options = {})
  super _message: I18n.t("stove.validations.#{klass}.#{id}", options)
end