| 1 | /**************************************************************************/ |
| 2 | /* error_list.cpp */ |
| 3 | /**************************************************************************/ |
| 4 | /* This file is part of: */ |
| 5 | /* GODOT ENGINE */ |
| 6 | /* https://godotengine.org */ |
| 7 | /**************************************************************************/ |
| 8 | /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ |
| 9 | /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ |
| 10 | /* */ |
| 11 | /* Permission is hereby granted, free of charge, to any person obtaining */ |
| 12 | /* a copy of this software and associated documentation files (the */ |
| 13 | /* "Software"), to deal in the Software without restriction, including */ |
| 14 | /* without limitation the rights to use, copy, modify, merge, publish, */ |
| 15 | /* distribute, sublicense, and/or sell copies of the Software, and to */ |
| 16 | /* permit persons to whom the Software is furnished to do so, subject to */ |
| 17 | /* the following conditions: */ |
| 18 | /* */ |
| 19 | /* The above copyright notice and this permission notice shall be */ |
| 20 | /* included in all copies or substantial portions of the Software. */ |
| 21 | /* */ |
| 22 | /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ |
| 23 | /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ |
| 24 | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ |
| 25 | /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ |
| 26 | /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ |
| 27 | /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ |
| 28 | /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ |
| 29 | /**************************************************************************/ |
| 30 | |
| 31 | #include "error_list.h" |
| 32 | |
| 33 | const char *error_names[] = { |
| 34 | "OK" , // OK |
| 35 | "Failed" , // FAILED |
| 36 | "Unavailable" , // ERR_UNAVAILABLE |
| 37 | "Unconfigured" , // ERR_UNCONFIGURED |
| 38 | "Unauthorized" , // ERR_UNAUTHORIZED |
| 39 | "Parameter out of range" , // ERR_PARAMETER_RANGE_ERROR |
| 40 | "Out of memory" , // ERR_OUT_OF_MEMORY |
| 41 | "File not found" , // ERR_FILE_NOT_FOUND |
| 42 | "File: Bad drive" , // ERR_FILE_BAD_DRIVE |
| 43 | "File: Bad path" , // ERR_FILE_BAD_PATH |
| 44 | "File: Permission denied" , // ERR_FILE_NO_PERMISSION |
| 45 | "File already in use" , // ERR_FILE_ALREADY_IN_USE |
| 46 | "Can't open file" , // ERR_FILE_CANT_OPEN |
| 47 | "Can't write file" , // ERR_FILE_CANT_WRITE |
| 48 | "Can't read file" , // ERR_FILE_CANT_READ |
| 49 | "File unrecognized" , // ERR_FILE_UNRECOGNIZED |
| 50 | "File corrupt" , // ERR_FILE_CORRUPT |
| 51 | "Missing dependencies for file" , // ERR_FILE_MISSING_DEPENDENCIES |
| 52 | "End of file" , // ERR_FILE_EOF |
| 53 | "Can't open" , // ERR_CANT_OPEN |
| 54 | "Can't create" , // ERR_CANT_CREATE |
| 55 | "Query failed" , // ERR_QUERY_FAILED |
| 56 | "Already in use" , // ERR_ALREADY_IN_USE |
| 57 | "Locked" , // ERR_LOCKED |
| 58 | "Timeout" , // ERR_TIMEOUT |
| 59 | "Can't connect" , // ERR_CANT_CONNECT |
| 60 | "Can't resolve" , // ERR_CANT_RESOLVE |
| 61 | "Connection error" , // ERR_CONNECTION_ERROR |
| 62 | "Can't acquire resource" , // ERR_CANT_ACQUIRE_RESOURCE |
| 63 | "Can't fork" , // ERR_CANT_FORK |
| 64 | "Invalid data" , // ERR_INVALID_DATA |
| 65 | "Invalid parameter" , // ERR_INVALID_PARAMETER |
| 66 | "Already exists" , // ERR_ALREADY_EXISTS |
| 67 | "Does not exist" , // ERR_DOES_NOT_EXIST |
| 68 | "Can't read database" , // ERR_DATABASE_CANT_READ |
| 69 | "Can't write database" , // ERR_DATABASE_CANT_WRITE |
| 70 | "Compilation failed" , // ERR_COMPILATION_FAILED |
| 71 | "Method not found" , // ERR_METHOD_NOT_FOUND |
| 72 | "Link failed" , // ERR_LINK_FAILED |
| 73 | "Script failed" , // ERR_SCRIPT_FAILED |
| 74 | "Cyclic link detected" , // ERR_CYCLIC_LINK |
| 75 | "Invalid declaration" , // ERR_INVALID_DECLARATION |
| 76 | "Duplicate symbol" , // ERR_DUPLICATE_SYMBOL |
| 77 | "Parse error" , // ERR_PARSE_ERROR |
| 78 | "Busy" , // ERR_BUSY |
| 79 | "Skip" , // ERR_SKIP |
| 80 | "Help" , // ERR_HELP |
| 81 | "Bug" , // ERR_BUG |
| 82 | "Printer on fire" , // ERR_PRINTER_ON_FIRE |
| 83 | }; |
| 84 | |
| 85 | static_assert(sizeof(error_names) / sizeof(*error_names) == ERR_MAX); |
| 86 | |