Class: Micro::Service::Safe

Inherits:
Base
  • Object
show all
Defined in:
lib/micro/service/safe.rb

Direct Known Subclasses

Micro::Service::Strict::Safe

Instance Method Summary collapse

Methods inherited from Base

&, >>, __failure_type, __new__, #__set_result__, call, #call!, to_proc

Instance Method Details

#callObject



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

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