Sha256: dbd315be6e417d3ed83c77c618117fcd307140a037cbc0ae60650e0cfe385edb

Contents?: true

Size: 1.58 KB

Versions: 5

Compression:

Stored size: 1.58 KB

Contents

module Sequel
  # Represents an error raised in Sequel code.
  class Error < ::StandardError
    
    # Raised when Sequel is unable to load a specified adapter.
    class AdapterNotFound < Error ; end
    
    # Raise when an invalid expression is encountered inside a block filter.
    class InvalidExpression < Error; end
                                       
    # Represents an Invalid filter.    
    class InvalidFilter < Error ; end
    
    # Represents an invalid join type.
    class InvalidJoinType < Error ; end

    # Raised on an invalid operation.
    class InvalidOperation < Error; end
                                       
    # Error raised when an invalid statement is executed.
    class InvalidStatement < Error; end

    # Represents an Invalid transform.
    class InvalidTransform < Error ; end
    
    # Represents an invalid value stored in the database.
    class InvalidValue < Error ; end
                                       
    # Represents an attempt to performing filter operations when no filter has been specified yet.
    class NoExistingFilter < Error ; end
                                       
    # There was an error while waiting on a connection from the connection pool
    class PoolTimeoutError < Error ; end
                                       
    # Rollback is a special error used to rollback a transactions.
    # A transaction block will catch this error and won't pass further up the stack.
    class Rollback < Error ; end
    
    # Should be raised inside a worker loop to tell it to stop working.
    class WorkerStop < RuntimeError ; end
  end  
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
sequel-2.3.0 lib/sequel_core/exceptions.rb
sequel_core-2.1.0 lib/sequel_core/exceptions.rb
sequel_core-2.0.1 lib/sequel_core/exceptions.rb
sequel_core-2.0.0 lib/sequel_core/exceptions.rb
sequel_core-2.2.0 lib/sequel_core/exceptions.rb