Sha256: ba737c16a5d52c67b248d7051da8408f386dd050381cfa960bc1cc5f53bea03b

Contents?: true

Size: 783 Bytes

Versions: 4

Compression:

Stored size: 783 Bytes

Contents

module Bmg

  # Main parent of all Bmg errors
  class Error < StandardError; end

  # Raised by Relation#one when the relation is not a singleton
  class OneError < Error; end

  # Raised when an update is invalid for some reason
  class InvalidUpdateError < Error; end

  # Raised when violating types
  class TypeError < Error; end

  # Raised by a type when trying to access attribute list
  # while unknown
  class UnknownAttributesError < Error; end

  # Raised when an operator is badly used
  class MisuseError < Error; end

  # Raised when some compilation is not supported, as an indicator
  # to backtrack to something more ruby-native.
  class NotSupportedError < Error; end

  # Raised when relation (variable) is not found
  class NotSuchRelationError < Error; end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/error.rb
bmg-0.23.2 lib/bmg/error.rb
bmg-0.23.1 lib/bmg/error.rb
bmg-0.23.0 lib/bmg/error.rb