lib/micro/case/error.rb in u-case-3.0.0.rc2 vs lib/micro/case/error.rb in u-case-3.0.0.rc3
- old
+ new
@@ -45,13 +45,9 @@
class InvalidInvocationOfTheThenMethod < StandardError
def initialize; super('Invalid invocation of the Micro::Case::Result#then method'); end
end
- class InvalidAccessToTheUseCaseObject < StandardError
- def initialize; super('only a failure result can access its use case object'.freeze); end
- end
-
def self.by_wrong_usage?(exception)
exception.is_a?(InvalidResult) || exception.is_a?(UnexpectedResult) || exception.is_a?(ArgumentError)
end
end
end