Module: Metaractor::HandleErrors
- Defined in:
- lib/metaractor/handle_errors.rb
Instance Method Summary collapse
- #add_error(**args) ⇒ Object
- #add_errors(**args) ⇒ Object
- #error_messages ⇒ Object
- #fail_with_error!(**args) ⇒ Object
- #fail_with_errors!(**args) ⇒ Object
Instance Method Details
#add_error(**args) ⇒ Object
14 15 16 |
# File 'lib/metaractor/handle_errors.rb', line 14 def add_error(**args) context.add_error(object: self, **args) end |
#add_errors(**args) ⇒ Object
18 19 20 |
# File 'lib/metaractor/handle_errors.rb', line 18 def add_errors(**args) context.add_errors(object: self, **args) end |
#error_messages ⇒ Object
22 23 24 |
# File 'lib/metaractor/handle_errors.rb', line 22 def context. end |
#fail_with_error!(**args) ⇒ Object
6 7 8 |
# File 'lib/metaractor/handle_errors.rb', line 6 def fail_with_error!(**args) context.fail_with_error!(object: self, **args) end |
#fail_with_errors!(**args) ⇒ Object
10 11 12 |
# File 'lib/metaractor/handle_errors.rb', line 10 def fail_with_errors!(**args) context.fail_with_errors!(object: self, **args) end |