27 return mCode != SQLITE_OK &&
mCode != SQLITE_DONE &&
mCode != SQLITE_ROW;
35Error::operator bool() const noexcept
61 return XO(
"No error");
64 return XO(
"Generic error");
67 return XO(
"Internal logic error in SQLite");
70 return XO(
"Access permission denied");
73 return XO(
"Callback routine requested an abort");
76 return XO(
"The database file is locked");
79 return XO(
"A table in the database is locked");
82 return XO(
"A malloc() failed");
85 return XO(
"Attempt to write a read-only database");
86 case SQLITE_INTERRUPT:
88 return XO(
"Operation terminated");
91 return XO(
"I/O error occurred");
94 return XO(
"The database disk image is malformed");
97 return XO(
"File not found");
100 return XO(
"Insertion failed because the drive is full");
101 case SQLITE_CANTOPEN:
103 return XO(
"Unable to open the database file");
104 case SQLITE_PROTOCOL:
106 return XO(
"Database lock protocol error");
109 return XO(
"The database schema changed");
112 return XO(
"String or BLOB exceeds size limit");
113 case SQLITE_CONSTRAINT:
115 return XO(
"Abort due to constraint violation");
116 case SQLITE_MISMATCH:
118 return XO(
"Data type mismatch");
121 return XO(
"Library used incorrectly");
124 return XO(
"The large file support is disabled");
127 return XO(
"Authorization denied");
130 return XO(
"Not used");
133 return XO(
"2nd parameter to sqlite3_bind out of range");
136 return XO(
"File opened that is not a database file ");
139 return XO(
"Unknown error");
Declare abstract class AudacityException, some often-used subclasses, and GuardedCall.
@ Internal
Indicates internal failure from Audacity.
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
A MessageBoxException that shows a given, unvarying string.
Holds a msgid for the translation catalog; may also bind format arguments.
bool IsError() const noexcept
Returns true if the object represents an error.
TranslatableString GetErrorString() const
int GetCode() const noexcept
bool IsOk() const noexcept
Returns true if the object represents a success code.