Class: SmartCore::Operation::Result::Fatal
- Defined in:
- lib/smart_core/operation/result/fatal.rb
Overview
Defined Under Namespace
Classes: FatalError
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
Methods inherited from Error
#each_error, #error?, #error_codes, #error_context
Methods inherited from Basic
#callback?, #failure?, #initialize, #success?
Constructor Details
This class inherits a constructor from SmartCore::Operation::Result::Basic
Instance Method Details
#exception ⇒ Object
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.
29 30 31 |
# File 'lib/smart_core/operation/result/fatal.rb', line 29 def exception FatalError.new(self) end |
#fatal? {|SmartCore::Operation::Result::Fatal| ... } ⇒ Boolean
38 39 40 |
# File 'lib/smart_core/operation/result/fatal.rb', line 38 def fatal? true.tap { yield(self) if block_given? } end |