Exception: Flows::Flow::InvalidNodeRouteError

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, route_destination) ⇒ InvalidNodeRouteError

Returns a new instance of InvalidNodeRouteError.

Since:

  • 0.4.0



8
9
10
11
# File 'lib/flows/flow/errors.rb', line 8

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

Instance Method Details

#messageObject

Since:

  • 0.4.0



13
14
15
# File 'lib/flows/flow/errors.rb', line 13

def message
  "Node `#{@node_name}` has a route to `#{@route_destination}`, but node `#{@route_destination}` is missing."
end