Sha256: c0d57113a4b7690e7440a8ac0d23a586b56f9f0774a8c83bf941761bb21aa845

Contents?: true

Size: 556 Bytes

Versions: 8

Compression:

Stored size: 556 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

8 entries across 8 versions & 3 rubygems

Version Path
metaractor-sycamore-0.4.2 lib/sycamore/exceptions.rb
metaractor-sycamore-0.4.1 lib/sycamore/exceptions.rb
outstand-sycamore-0.4.0 lib/sycamore/exceptions.rb
outstand-sycamore-0.4.0.pre lib/sycamore/exceptions.rb
sycamore-0.3.1 lib/sycamore/exceptions.rb
sycamore-0.3.0 lib/sycamore/exceptions.rb
sycamore-0.2.1 lib/sycamore/exceptions.rb
sycamore-0.2.0 lib/sycamore/exceptions.rb