mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
beast cleaning and tidying:
* Consolidate small modules into one * Remove Android-specific platform support * Remove Chrono.h from beast_core.h * Removed files: - TypeTraits.h - Utility.h - Net.h - Asio.h * Remove zlib support: - Remove inline zlib library sources - Remove GZIPCompressorOutputStream - Remove GZIPDecompressorInputStream * Remove obsolete or unused classes: - AbstractObject - BigInteger - BufferedInputStream - CacheLine - CPUMeter - DatagramSocket - DynamicObject - FileLogger - FPUFlags - Identifier - JSON - LocalisedStrings - MACAddress - MemoryAlignment - MemoryInputStream - MemoryMappedFile - NamedValueSet - OptionalScopedPointer - PerformanceCounter - PropertySet - ScopedTimeInterval - SparseSet - SpinDelay - StreamingSocket - StringPool - SubregionStream - Uuid - Variant
This commit is contained in:
@@ -93,134 +93,134 @@ const Error sqliteError(const char* sourceFileName,
|
||||
break;
|
||||
|
||||
case SQLITE_ERROR:
|
||||
s = TRANS("an sqlite error or missing database was encountered");
|
||||
s = "an sqlite error or missing database was encountered";
|
||||
c = Error::general;
|
||||
break;
|
||||
|
||||
case SQLITE_INTERNAL:
|
||||
s = TRANS("sqlite encountered an internal logic error");
|
||||
s = "sqlite encountered an internal logic error";
|
||||
c = Error::unexpected;
|
||||
break;
|
||||
|
||||
case SQLITE_PERM:
|
||||
s = TRANS("sqlite was denied file access permission");
|
||||
s = "sqlite was denied file access permission";
|
||||
c = Error::fileNoPerm;
|
||||
break;
|
||||
|
||||
case SQLITE_ABORT:
|
||||
s = TRANS("the sqlite operation was canceled due to a callback");
|
||||
s = "the sqlite operation was canceled due to a callback";
|
||||
c = Error::canceled;
|
||||
break;
|
||||
|
||||
case SQLITE_BUSY:
|
||||
s = TRANS("the sqlite database file is locked");
|
||||
s = "the sqlite database file is locked";
|
||||
c = Error::fileInUse;
|
||||
break;
|
||||
|
||||
case SQLITE_LOCKED:
|
||||
s = TRANS("the sqlite database table was locked");
|
||||
s = "the sqlite database table was locked";
|
||||
c = Error::fileInUse;
|
||||
break;
|
||||
|
||||
case SQLITE_NOMEM:
|
||||
s = TRANS("sqlite ran out of memory");
|
||||
s = "sqlite ran out of memory";
|
||||
c = Error::noMemory;
|
||||
break;
|
||||
|
||||
case SQLITE_READONLY:
|
||||
s = TRANS("sqlite tried to write to a read-only database");
|
||||
s = "sqlite tried to write to a read-only database";
|
||||
c = Error::fileNoPerm;
|
||||
break;
|
||||
|
||||
case SQLITE_INTERRUPT:
|
||||
s = TRANS("the sqlite operation was interrupted");
|
||||
s = "the sqlite operation was interrupted";
|
||||
c = Error::canceled;
|
||||
break;
|
||||
|
||||
case SQLITE_IOERR:
|
||||
s = TRANS("sqlite encountered a device I/O error");
|
||||
s = "sqlite encountered a device I/O error";
|
||||
c = Error::fileIOError;
|
||||
break;
|
||||
|
||||
case SQLITE_CORRUPT:
|
||||
s = TRANS("the sqlite database is corrupt");
|
||||
s = "the sqlite database is corrupt";
|
||||
c = Error::invalidData;
|
||||
break;
|
||||
|
||||
case SQLITE_FULL:
|
||||
s = TRANS("the sqlite database is full");
|
||||
s = "the sqlite database is full";
|
||||
c = Error::fileNoSpace;
|
||||
break;
|
||||
|
||||
case SQLITE_CANTOPEN:
|
||||
s = TRANS("the sqlite database could not be opened");
|
||||
s = "the sqlite database could not be opened";
|
||||
c = Error::fileNotFound;
|
||||
break;
|
||||
|
||||
case SQLITE_PROTOCOL:
|
||||
s = TRANS("sqlite encountered a lock protocol error");
|
||||
s = "sqlite encountered a lock protocol error";
|
||||
c = Error::badParameter;
|
||||
break;
|
||||
|
||||
case SQLITE_EMPTY:
|
||||
s = TRANS("the sqlite database is empty");
|
||||
s = "the sqlite database is empty";
|
||||
c = Error::noMoreData;
|
||||
break;
|
||||
|
||||
case SQLITE_SCHEMA:
|
||||
s = TRANS("the sqlite database scheme was changed");
|
||||
s = "the sqlite database scheme was changed";
|
||||
c = Error::invalidData;
|
||||
break;
|
||||
|
||||
case SQLITE_TOOBIG:
|
||||
s = TRANS("the sqlite string or blob was too large");
|
||||
s = "the sqlite string or blob was too large";
|
||||
c = Error::fileNoSpace;
|
||||
break;
|
||||
|
||||
case SQLITE_CONSTRAINT:
|
||||
s = TRANS("the sqlite operation was aborted due to a constraint violation");
|
||||
s = "the sqlite operation was aborted due to a constraint violation";
|
||||
c = Error::badParameter;
|
||||
break;
|
||||
|
||||
case SQLITE_MISMATCH:
|
||||
s = TRANS("the sqlite data was mismatched");
|
||||
s = "the sqlite data was mismatched";
|
||||
c = Error::badParameter;
|
||||
break;
|
||||
|
||||
case SQLITE_MISUSE:
|
||||
s = TRANS("the sqlite library parameter was invalid");
|
||||
s = "the sqlite library parameter was invalid";
|
||||
c = Error::badParameter;
|
||||
break;
|
||||
|
||||
case SQLITE_NOLFS:
|
||||
s = TRANS("the sqlite platform feature is unavailable");
|
||||
s = "the sqlite platform feature is unavailable";
|
||||
c = Error::badParameter;
|
||||
break;
|
||||
|
||||
case SQLITE_AUTH:
|
||||
s = TRANS("sqlite authorization was denied");
|
||||
s = "sqlite authorization was denied";
|
||||
c = Error::fileNoPerm;
|
||||
break;
|
||||
|
||||
case SQLITE_FORMAT:
|
||||
s = TRANS("the auxiliary sqlite database has an invalid format");
|
||||
s = "the auxiliary sqlite database has an invalid format";
|
||||
c = Error::invalidData;
|
||||
break;
|
||||
|
||||
case SQLITE_RANGE:
|
||||
s = TRANS("the sqlite parameter was invalid");
|
||||
s = "the sqlite parameter was invalid";
|
||||
c = Error::badParameter;
|
||||
break;
|
||||
|
||||
case SQLITE_NOTADB:
|
||||
s = TRANS("the file is not a sqlite database");
|
||||
s = "the file is not a sqlite database";
|
||||
c = Error::invalidData;
|
||||
break;
|
||||
|
||||
default:
|
||||
s << TRANS("an unknown sqlite3 error code #")
|
||||
s << "an unknown sqlite3 error code #"
|
||||
<< String(sqliteErrorCode)
|
||||
<< TRANS("was returned");
|
||||
<< "was returned";
|
||||
c = Error::general;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user