Exception: Conflow::InvalidNestedFuture

Inherits:
Error
  • Object
show all
Defined in:
lib/conflow/future.rb

Overview

Raised when future was built with nested key

Examples:

job.outcome[:parent][:child] #=> raises InvalidNestedPromise

Instance Method Summary collapse

Constructor Details

#initializeInvalidNestedFuture

Sets custom message for the error



9
10
11
# File 'lib/conflow/future.rb', line 9

def initialize
  super "Futures don't allow extracting nested fields"
end