lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_tables.rb in knjrbfw-0.0.59 vs lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_tables.rb in knjrbfw-0.0.62
- old
+ new
@@ -21,11 +21,11 @@
self.list do |table_obj|
return table_obj if table_obj.name.to_s == table_name.to_s
end
- raise Knj::Errors::NotFound, "Table was not found: #{table_name}."
+ raise Errno::ENOENT, "Table was not found: #{table_name}."
end
def list
ret = {} unless block_given?
@@ -144,11 +144,11 @@
end
def column(name)
list = self.columns
return list[name] if list[name]
- raise Knj::Errors::NotFound.new("Column not found: #{name}.")
+ raise Errno::ENOENT.new("Column not found: #{name}.")
end
def columns
@db.cols
ret = {}
@@ -322,10 +322,10 @@
self.indexes do |index|
return index if index.name.to_s == name
end
- raise Knj::Errors::NotFound.new("Index not found: #{name}.")
+ raise Errno::ENOENT.new("Index not found: #{name}.")
end
def indexes
@db.indexes
ret = {} unless block_given?
\ No newline at end of file