Sha256: b8a8656ad20299161d16fb72405a47c626edf11a0d4e654d18be6c518ab1fb5f
Contents?: true
Size: 596 Bytes
Versions: 5
Compression:
Stored size: 596 Bytes
Contents
class SequelError < StandardError end # This error class is used to wrap exceptions occuring inside calls to # ConnectionPool#hold. Sequel wraps any exception raised by the database # connection and provides it as a SequelConnectionError. The original # exception is provided through SequelConnectionError#original_exception. class SequelConnectionError < SequelError attr_reader :original_error def initialize(original_error) @original_error = original_error end def message "#{@original_error.class}: #{@original_error.message}" end alias_method :to_s, :message end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sequel-0.1.1 | lib/sequel/error.rb |
sequel-0.0.20 | lib/sequel/error.rb |
sequel-0.0.19 | lib/sequel/error.rb |
sequel-0.0.18 | lib/sequel/error.rb |
sequel-0.1.0 | lib/sequel/error.rb |