Mark SQLITE_IOERR/SQLITE_CANTOPEN as environmental error
Fixes #3060 IOERR: The SQLITE_IOERR result code says that the operation could not finish because the operating system reported an I/O error. CANTOPEN: The SQLITE_CANTOPEN result code indicates that SQLite was unable to open a file. The file in question might be a primary database file or on of several temporary disk files.
This commit is contained in:
parent
47218e5402
commit
67a52527f5
@ -70,8 +70,10 @@ class SqliteError(SqlError):
|
|||||||
environmental_errors = [
|
environmental_errors = [
|
||||||
'5', # SQLITE_BUSY ("database is locked")
|
'5', # SQLITE_BUSY ("database is locked")
|
||||||
'8', # SQLITE_READONLY
|
'8', # SQLITE_READONLY
|
||||||
|
'10', # SQLITE_IOERR
|
||||||
'11', # SQLITE_CORRUPT
|
'11', # SQLITE_CORRUPT
|
||||||
'13', # SQLITE_FULL
|
'13', # SQLITE_FULL
|
||||||
|
'14', # SQLITE_CANTOPEN
|
||||||
]
|
]
|
||||||
# At least in init(), we can get errors like this:
|
# At least in init(), we can get errors like this:
|
||||||
# > type: ConnectionError
|
# > type: ConnectionError
|
||||||
|
Loading…
Reference in New Issue
Block a user