Values
Ok
Methods that return godot.Error
return OK
when no error occurred. Note that many functions don't return an error code but will print error messages to standard output.
Since OK
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
Generic error.
Unavailable
Unavailable error.
Unconfigured
Unconfigured error.
Unauthorized
Unauthorized error.
ParameterRangeError
Parameter range error.
OutOfMemory
Out of memory (OOM) error.
FileNotFound
File: Not found error.
FileBadDrive
File: Bad drive error.
FileBadPath
File: Bad path error.
FileNoPermission
File: No permission error.
FileAlreadyInUse
File: Already in use error.
FileCantOpen
File: Can't open error.
FileCantWrite
File: Can't write error.
FileCantRead
File: Can't read error.
FileUnrecognized
File: Unrecognized error.
FileCorrupt
File: Corrupt error.
FileMissingDependencies
File: Missing dependencies error.
FileEof
File: End of file (EOF) error.
CantOpen
Can't open error.
CantCreate
Can't create error.
QueryFailed
Query failed error.
AlreadyInUse
Already in use error.
Locked
Locked error.
Timeout
Timeout error.
CantConnect
Can't connect error.
CantResolve
Can't resolve error.
ConnectionError
Connection error.
CantAcquireResource
Can't acquire resource error.
CantFork
Can't fork process error.
InvalidData
Invalid data error.
InvalidParameter
Invalid parameter error.
AlreadyExists
Already exists error.
DoesNotExist
Does not exist error.
DatabaseCantRead
Database: Read error.
DatabaseCantWrite
Database: Write error.
CompilationFailed
Compilation failed error.
MethodNotFound
Method not found error.
LinkFailed
Linking failed error.
ScriptFailed
Script failed error.
CyclicLink
Cycling link (import cycle) error.
InvalidDeclaration
Invalid declaration error.
DuplicateSymbol
Duplicate symbol error.
ParseError
Parse error.
Busy
Busy error.
Skip
Skip error.
Help
Help error.
Bug
Bug error.
PrinterOnFire
Printer on fire error. (This is an easter egg, no engine methods return this error code.)