Sha256: 5515980dead833079274eeeece9e23f32951989852cb022907b94ded9d2b6d09
Contents?: true
Size: 800 Bytes
Versions: 3
Compression:
Stored size: 800 Bytes
Contents
module Flows class Flow # Base class for {Flow} error class Error < StandardError; end # Raised when router has an impossible route. class InvalidNodeRouteError < Error def initialize(node_name, route_destination) @node_name = node_name.inspect @route_destination = route_destination.inspect end def message "Node `#{@node_name}` has a route to `#{@route_destination}`, but node `#{@route_destination}` is missing." end end # Raised when router has an impossible route. class InvalidFirstNodeError < Error def initialize(node_name) @node_name = node_name.inspect end def message "`#{@node_name}` is a first node name, but node `#{@node_name}` is missing." end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flows-0.6.0 | lib/flows/flow/errors.rb |
flows-0.5.1 | lib/flows/flow/errors.rb |
flows-0.5.0 | lib/flows/flow/errors.rb |