Exception: ServicePattern::FailedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ServicePattern::FailedError
- Defined in:
- lib/service_pattern/failed_error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
2 3 4 |
# File 'lib/service_pattern/failed_error.rb', line 2 def errors @errors end |
Instance Method Details
#error_messages ⇒ Object
4 5 6 |
# File 'lib/service_pattern/failed_error.rb', line 4 def @error_messages ||= @errors.map(&:message) end |
#error_types ⇒ Object
8 9 10 |
# File 'lib/service_pattern/failed_error.rb', line 8 def error_types @error_types ||= @errors.map(&:type) end |