Exception: Formify::Errors::FormError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/formify/errors/form_error.rb

Direct Known Subclasses

ValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(form:, message:) ⇒ FormError

Returns a new instance of FormError.



6
7
8
9
# File 'lib/formify/errors/form_error.rb', line 6

def initialize(form:, message:)
  @form = form
  super(message)
end

Instance Attribute Details

#formObject (readonly)

Returns the value of attribute form.



4
5
6
# File 'lib/formify/errors/form_error.rb', line 4

def form
  @form
end