Sha256: e9a2679fdc94812e0d6f10ebb5259b2eaea7c1bbab8da6e145f30081150aedb5
Contents?: true
Size: 481 Bytes
Versions: 20
Compression:
Stored size: 481 Bytes
Contents
module DataObjects class SQLError < Error attr_reader :message attr_reader :code attr_reader :sqlstate attr_reader :query attr_reader :uri def initialize(message, code = nil, sqlstate = nil, query = nil, uri = nil) @message = message @code = code @sqlstate = sqlstate @query = query @uri = uri end def to_s "#{message} (code: #{code}, sql state: #{sqlstate}, query: #{query}, uri: #{uri})" end end end
Version data entries
20 entries across 20 versions & 1 rubygems