Debian Codegraph @

core/error/error_list.cpp

raw
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 #include "core/string/ustring.h"
34 #include "core/typedefs.h"
35
36 const char *error_names[] = {
37 TTRC("OK"), // OK
38 TTRC("Failed"), // FAILED
39 TTRC("Unavailable"), // ERR_UNAVAILABLE
40 TTRC("Unconfigured"), // ERR_UNCONFIGURED
41 TTRC("Unauthorized"), // ERR_UNAUTHORIZED
42 TTRC("Parameter out of range"), // ERR_PARAMETER_RANGE_ERROR
43 TTRC("Out of memory"), // ERR_OUT_OF_MEMORY
44 TTRC("File not found"), // ERR_FILE_NOT_FOUND
45 TTRC("File: Bad drive"), // ERR_FILE_BAD_DRIVE
46 TTRC("File: Bad path"), // ERR_FILE_BAD_PATH
47 TTRC("File: Permission denied"), // ERR_FILE_NO_PERMISSION
48 TTRC("File already in use"), // ERR_FILE_ALREADY_IN_USE
49 TTRC("Can't open file"), // ERR_FILE_CANT_OPEN
50 TTRC("Can't write file"), // ERR_FILE_CANT_WRITE
51 TTRC("Can't read file"), // ERR_FILE_CANT_READ
52 TTRC("File unrecognized"), // ERR_FILE_UNRECOGNIZED
53 TTRC("File corrupt"), // ERR_FILE_CORRUPT
54 TTRC("Missing dependencies for file"), // ERR_FILE_MISSING_DEPENDENCIES
55 TTRC("End of file"), // ERR_FILE_EOF
56 TTRC("Can't open"), // ERR_CANT_OPEN
57 TTRC("Can't create"), // ERR_CANT_CREATE
58 TTRC("Query failed"), // ERR_QUERY_FAILED
59 TTRC("Already in use"), // ERR_ALREADY_IN_USE
60 TTRC("Locked"), // ERR_LOCKED
61 TTRC("Timeout"), // ERR_TIMEOUT
62 TTRC("Can't connect"), // ERR_CANT_CONNECT
63 TTRC("Can't resolve"), // ERR_CANT_RESOLVE
64 TTRC("Connection error"), // ERR_CONNECTION_ERROR
65 TTRC("Can't acquire resource"), // ERR_CANT_ACQUIRE_RESOURCE
66 TTRC("Can't fork"), // ERR_CANT_FORK
67 TTRC("Invalid data"), // ERR_INVALID_DATA
68 TTRC("Invalid parameter"), // ERR_INVALID_PARAMETER
69 TTRC("Already exists"), // ERR_ALREADY_EXISTS
70 TTRC("Does not exist"), // ERR_DOES_NOT_EXIST
71 TTRC("Can't read database"), // ERR_DATABASE_CANT_READ
72 TTRC("Can't write database"), // ERR_DATABASE_CANT_WRITE
73 TTRC("Compilation failed"), // ERR_COMPILATION_FAILED
74 TTRC("Method not found"), // ERR_METHOD_NOT_FOUND
75 TTRC("Link failed"), // ERR_LINK_FAILED
76 TTRC("Script failed"), // ERR_SCRIPT_FAILED
77 TTRC("Cyclic link detected"), // ERR_CYCLIC_LINK
78 TTRC("Invalid declaration"), // ERR_INVALID_DECLARATION
79 TTRC("Duplicate symbol"), // ERR_DUPLICATE_SYMBOL
80 TTRC("Parse error"), // ERR_PARSE_ERROR
81 TTRC("Busy"), // ERR_BUSY
82 TTRC("Skip"), // ERR_SKIP
83 TTRC("Help"), // ERR_HELP
84 TTRC("Bug"), // ERR_BUG
85 TTRC("Printer on fire"), // ERR_PRINTER_ON_FIRE
86 };
87
88 static_assert(std_size(error_names) == ERR_MAX);