lib/micro/case/safe.rb in u-case-2.6.0 vs lib/micro/case/safe.rb in u-case-3.0.0.rc1
- old
+ new
@@ -1,15 +1,19 @@
# frozen_string_literal: true
module Micro
class Case
class Safe < ::Micro::Case
+ def self.__flow_builder
+ Cases::Safe::Flow
+ end
+
def call
__call
rescue => exception
- raise exception if Error::ByWrongUsage.check(exception)
+ raise exception if Error.by_wrong_usage?(exception)
- Failure(exception)
+ Failure(result: exception)
end
end
end
end