Class: Micro::Case::Safe
- Inherits:
-
Micro::Case
- Object
- Micro::Case
- Micro::Case::Safe
- Defined in:
- lib/micro/case/safe.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Micro::Case
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Micro::Case
__call__, __call__!, __flow_get__, __flow_set__!, __new__, #__set_result__, auto_validation_disabled?, call, call!, #call!, config, disable_auto_validation, flow, inherited, #initialize, inspect, then, to_proc, use_cases
Constructor Details
This class inherits a constructor from Micro::Case
Class Method Details
Instance Method Details
#__call__ ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/micro/case/safe.rb', line 10 def __call__ __call_the_use_case_or_its_flow rescue => exception raise exception if Error.by_wrong_usage?(exception) Failure(result: exception) end |