Class: SmartCore::Operation::Result::Fatal

Inherits:
Error
  • Object
show all
Defined in:
lib/smart_core/operation/result/fatal.rb

Overview

Since:

  • 0.1.0

Defined Under Namespace

Classes: FatalError

Instance Attribute Summary

Attributes inherited from Error

#errors

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

#exceptionObject

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.

Since:

  • 0.1.0



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

Yields:

Returns:

  • (Boolean)

Since:

  • 0.1.0



38
39
40
# File 'lib/smart_core/operation/result/fatal.rb', line 38

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