Sha256: 98f4287737b655049210803cd4a0cccb6bd7e13324ed8e2b3a8722edf595e512

Contents?: true

Size: 648 Bytes

Versions: 13

Compression:

Stored size: 648 Bytes

Contents

module Spira

  class SpiraError < StandardError ; end

  ##
  # For cases when a method is called which requires a `type` method be
  # declared on a Spira class.
  class NoTypeError < SpiraError ; end

  ##
  # For cases in which a repository is required but none has been given
  class NoRepositoryError < SpiraError ; end

  ##
  # For errors in the DSL, such as invalid predicates
  class ResourceDeclarationError < SpiraError ; end

  ##
  # Raised when user tries to assign a non-existing property
  class PropertyMissingError < SpiraError ; end

  ##
  # Raised when record cannot be persisted
  class RecordNotSaved < SpiraError ; end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spira-3.3.0 lib/spira/exceptions.rb
spira-3.2.0 lib/spira/exceptions.rb
spira-3.1.1 lib/spira/exceptions.rb
spira-3.1.0 lib/spira/exceptions.rb
spira-3.0.0 lib/spira/exceptions.rb
spira-2.1.0 lib/spira/exceptions.rb
spira-2.0.2 lib/spira/exceptions.rb
spira-2.0.1 lib/spira/exceptions.rb
spira-2.0.0 lib/spira/exceptions.rb
spira-1.1.1 lib/spira/exceptions.rb
spira-0.7.1 lib/spira/exceptions.rb
spira-0.7 lib/spira/exceptions.rb
spira-0.5.0 lib/spira/exceptions.rb