mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
10 lines
266 B
Crystal
10 lines
266 B
Crystal
# Exception thrown on invalid SQLite3 operations.
|
|
class SQLite3::Exception < ::Exception
|
|
# The internal code associated with the failure.
|
|
getter code
|
|
|
|
def initialize(db)
|
|
super(String.new(LibSQLite3.errmsg(db)))
|
|
@code = LibSQLite3.errcode(db)
|
|
end
|
|
end
|