Exception: Flows::Flow::InvalidFirstNodeError

Inherits:
Error
  • Object
show all
Defined in:
lib/flows/flow/errors.rb

Overview

Raised when router has an impossible route.

Since:

  • 0.4.0

Instance Method Summary collapse

Constructor Details

#initialize(node_name) ⇒ InvalidFirstNodeError

Returns a new instance of InvalidFirstNodeError.

Since:

  • 0.4.0



20
21
22
# File 'lib/flows/flow/errors.rb', line 20

def initialize(node_name)
  @node_name = node_name.inspect
end

Instance Method Details

#messageObject

Since:

  • 0.4.0



24
25
26
# File 'lib/flows/flow/errors.rb', line 24

def message
  "`#{@node_name}` is a first node name, but node `#{@node_name}` is missing."
end