comparison Core/Enumerations.cpp @ 1643:87c77b9b3679

provision for error codes in plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Sep 2015 14:42:20 +0200
parents ffd23c0104af
children 2e692c83e2f3
comparison
equal deleted inserted replaced
1642:0669d05b6de1 1643:87c77b9b3679
140 return "Bad credentials were provided to an HTTP request"; 140 return "Bad credentials were provided to an HTTP request";
141 141
142 case ErrorCode_BadFont: 142 case ErrorCode_BadFont:
143 return "Badly formatted font file"; 143 return "Badly formatted font file";
144 144
145 case ErrorCode_DatabasePlugin:
146 return "The plugin implementing a custom database back-end does not fulfill the proper interface";
147
148 case ErrorCode_StorageAreaPlugin:
149 return "Error in the plugin implementing a custom storage area";
150
145 case ErrorCode_SQLiteNotOpened: 151 case ErrorCode_SQLiteNotOpened:
146 return "SQLite: The database is not opened"; 152 return "SQLite: The database is not opened";
147 153
148 case ErrorCode_SQLiteAlreadyOpened: 154 case ErrorCode_SQLiteAlreadyOpened:
149 return "SQLite: Connection is already open"; 155 return "SQLite: Connection is already open";
302 return "Another plugin has already registered a custom storage area"; 308 return "Another plugin has already registered a custom storage area";
303 309
304 case ErrorCode_DatabaseBackendAlreadyRegistered: 310 case ErrorCode_DatabaseBackendAlreadyRegistered:
305 return "Another plugin has already registered a custom database back-end"; 311 return "Another plugin has already registered a custom database back-end";
306 312
307 case ErrorCode_DatabasePlugin: 313 case ErrorCode_DatabaseNotInitialized:
308 return "The plugin implementing a custom database back-end does not fulfill the proper interface"; 314 return "Plugin trying to call the database during its initialization";
309 315
310 default: 316 default:
311 return "Unknown error code"; 317 return "Unknown error code";
312 } 318 }
313 } 319 }