Class: Micro::Case::Safe

Inherits:
Micro::Case show all
Defined in:
lib/micro/case/safe.rb,
lib/micro/case/safe/flow.rb

Direct Known Subclasses

Micro::Case::Strict::Safe

Defined Under Namespace

Modules: Flow

Constant Summary

Constants inherited from Micro::Case

VERSION

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Micro::Case

&, >>, __failure_type, __new__, #__set_result__, auto_validation_disabled?, call, #call!, disable_auto_validation, to_proc

Class Method Details

.Flow(args) ⇒ Object



35
36
37
# File 'lib/micro/case/safe/flow.rb', line 35

def self.Flow(args)
  Flow::Reducer.build(Array(args))
end

Instance Method Details

#callObject



6
7
8
9
10
11
12
# File 'lib/micro/case/safe.rb', line 6

def call
  super
rescue => exception
  raise exception if Error::ByWrongUsage.check(exception)

  Failure(exception)
end