Error Enumeration |
[Missing <summary> documentation for "T:Godot.Error"]
Namespace: Godot
public enum Error
Member name | Value | Description | |
---|---|---|---|
Ok | 0 | Methods that return Error return when no error occurred. Note that many functions don't return an error code but will print error messages to standard output. Since has value 0, and all other failure codes are positive integers, it can also be used in boolean checks, e.g.: var err = method_that_returns_error() if err != OK: print("Failure!") # Or, equivalent: if err: print("Still failing!") | |
Failed | 1 | Generic error. | |
Unavailable | 2 | Unavailable error. | |
Unconfigured | 3 | Unconfigured error. | |
Unauthorized | 4 | Unauthorized error. | |
ParameterRangeError | 5 | Parameter range error. | |
OutOfMemory | 6 | Out of memory (OOM) error. | |
FileNotFound | 7 | File: Not found error. | |
FileBadDrive | 8 | File: Bad drive error. | |
FileBadPath | 9 | File: Bad path error. | |
FileNoPermission | 10 | File: No permission error. | |
FileAlreadyInUse | 11 | File: Already in use error. | |
FileCantOpen | 12 | File: Can't open error. | |
FileCantWrite | 13 | File: Can't write error. | |
FileCantRead | 14 | File: Can't read error. | |
FileUnrecognized | 15 | File: Unrecognized error. | |
FileCorrupt | 16 | File: Corrupt error. | |
FileMissingDependencies | 17 | File: Missing dependencies error. | |
FileEof | 18 | File: End of file (EOF) error. | |
CantOpen | 19 | Can't open error. | |
CantCreate | 20 | Can't create error. | |
QueryFailed | 21 | Query failed error. | |
AlreadyInUse | 22 | Already in use error. | |
Locked | 23 | Locked error. | |
Timeout | 24 | Timeout error. | |
CantConnect | 25 | Can't connect error. | |
CantResolve | 26 | Can't resolve error. | |
ConnectionError | 27 | Connection error. | |
CantAcquireResource | 28 | Can't acquire resource error. | |
CantFork | 29 | Can't fork process error. | |
InvalidData | 30 | Invalid data error. | |
InvalidParameter | 31 | Invalid parameter error. | |
AlreadyExists | 32 | Already exists error. | |
DoesNotExist | 33 | Does not exist error. | |
DatabaseCantRead | 34 | Database: Read error. | |
DatabaseCantWrite | 35 | Database: Write error. | |
CompilationFailed | 36 | Compilation failed error. | |
MethodNotFound | 37 | Method not found error. | |
LinkFailed | 38 | Linking failed error. | |
ScriptFailed | 39 | Script failed error. | |
CyclicLink | 40 | Cycling link (import cycle) error. | |
InvalidDeclaration | 41 | Invalid declaration error. | |
DuplicateSymbol | 42 | Duplicate symbol error. | |
ParseError | 43 | Parse error. | |
Busy | 44 | Busy error. | |
Skip | 45 | Skip error. | |
Help | 46 | Help error. | |
Bug | 47 | Bug error. | |
PrinterOnFire | 48 | Printer on fire error. (This is an easter egg, no engine methods return this error code.) |