Class: SmartCore::Operation::Fatal

Inherits:
Failure show all
Defined in:
lib/smart_core/operation/fatal.rb

Overview

Since:

  • 0.3.0

Instance Attribute Summary

Attributes inherited from Result

#__result_attributes__, #__result_options__

Instance Method Summary collapse

Methods inherited from Failure

#failure?, #initialize

Methods inherited from Result

#failure?, #initialize, #success?

Constructor Details

This class inherits a constructor from SmartCore::Operation::Failure

Instance Method Details

#exceptionSmartCore::Operation::FatalError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

Since:

  • 0.3.0



10
11
12
# File 'lib/smart_core/operation/fatal.rb', line 10

def exception
  SmartCore::Operation::FatalError.new(self)
end

#fatal?Boolean

Returns:

  • (Boolean)

Since:

  • 0.3.0



18
19
20
# File 'lib/smart_core/operation/fatal.rb', line 18

def fatal?
  true.tap { yield(self) if block_given? }
end