MCPcopy Create free account
hub / github.com/audacity/audacity / GetErrorString

Method GetErrorString

libraries/lib-sqlite-helpers/sqlite/Error.cpp:55–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55TranslatableString Error::GetErrorString() const
56{
57 switch (mCode)
58 {
59 case SQLITE_OK:
60 /* i18n-hint: database operation was successful */
61 return XO("No error");
62 case SQLITE_ERROR:
63 /* i18n-hint: database operation has failed, but there is no specific reason */
64 return XO("Generic error");
65 case SQLITE_INTERNAL:
66 /* i18n-hint: database operation has failed due to the internal error */
67 return XO("Internal logic error in SQLite");
68 case SQLITE_PERM:
69 /* i18n-hint: database operation has failed due to the permission error */
70 return XO("Access permission denied");
71 case SQLITE_ABORT:
72 /* i18n-hint: database operation was aborted by the callback */
73 return XO("Callback routine requested an abort");
74 case SQLITE_BUSY:
75 /* i18n-hint: database operation has failed because database is locked */
76 return XO("The database file is locked");
77 case SQLITE_LOCKED:
78 /* i18n-hint: database operation has failed because table is locked */
79 return XO("A table in the database is locked");
80 case SQLITE_NOMEM:
81 /* i18n-hint: database operation has failed due to the lack of memory */
82 return XO("A malloc() failed");
83 case SQLITE_READONLY:
84 /* i18n-hint: database operation has failed because database is read-only */
85 return XO("Attempt to write a read-only database");
86 case SQLITE_INTERRUPT:
87 /* i18n-hint: database operation was interrupted */
88 return XO("Operation terminated");
89 case SQLITE_IOERR:
90 /* i18n-hint: database operation has failed due to the I/O failure */
91 return XO("I/O error occurred");
92 case SQLITE_CORRUPT:
93 /* i18n-hint: database operation has failed due to the database corruption */
94 return XO("The database disk image is malformed");
95 case SQLITE_NOTFOUND:
96 /* i18n-hint: database operation has failed because the requested item was not found */
97 return XO("File not found");
98 case SQLITE_FULL:
99 /* i18n-hint: database operation has failed because the drive is full */
100 return XO("Insertion failed because the drive is full");
101 case SQLITE_CANTOPEN:
102 /* i18n-hint: database operation has failed because the file cannot be opened */
103 return XO("Unable to open the database file");
104 case SQLITE_PROTOCOL:
105 /* i18n-hint: database operation has failed because the lock protocol has failed */
106 return XO("Database lock protocol error");
107 case SQLITE_SCHEMA:
108 /* i18n-hint: database operation has failed because the database schema has changed */
109 return XO("The database schema changed");
110 case SQLITE_TOOBIG:
111 /* i18n-hint: database operation has failed because the string or BLOB exceeds size limit */
112 return XO("String or BLOB exceeds size limit");

Callers 3

SetupBlocksCopyMethod · 0.80
OnBlockDownloadedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected