Sha256: 2de13c0558572618554a6e4c326dd15b7919e19eff4fabdd2c9667a6018053d1

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

module Sycamore
  # raised when a value is not a valid node
  class InvalidNode < ArgumentError; end

  # raised when trying to call a additive command method of the {Nothing} tree
  class NothingMutation < StandardError; end

  # raised when calling {Tree#node} or {Tree#node!} on a Tree with multiple nodes
  class NonUniqueNodeSet < StandardError; end

  # raised when calling {Tree#node!} on a Tree without nodes
  class EmptyNodeSet < StandardError; end

  # raised when trying to fetch the child of a leaf
  class ChildError < KeyError; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metaractor-sycamore-0.4.3 lib/sycamore/exceptions.rb