Click or drag to resize

Error Enumeration

[Missing <summary> documentation for "T:Godot.Error"]

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public enum Error
Members
  Member nameValueDescription
Ok0

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!")

Failed1

Generic error.

Unavailable2

Unavailable error.

Unconfigured3

Unconfigured error.

Unauthorized4

Unauthorized error.

ParameterRangeError5

Parameter range error.

OutOfMemory6

Out of memory (OOM) error.

FileNotFound7

File: Not found error.

FileBadDrive8

File: Bad drive error.

FileBadPath9

File: Bad path error.

FileNoPermission10

File: No permission error.

FileAlreadyInUse11

File: Already in use error.

FileCantOpen12

File: Can't open error.

FileCantWrite13

File: Can't write error.

FileCantRead14

File: Can't read error.

FileUnrecognized15

File: Unrecognized error.

FileCorrupt16

File: Corrupt error.

FileMissingDependencies17

File: Missing dependencies error.

FileEof18

File: End of file (EOF) error.

CantOpen19

Can't open error.

CantCreate20

Can't create error.

QueryFailed21

Query failed error.

AlreadyInUse22

Already in use error.

Locked23

Locked error.

Timeout24

Timeout error.

CantConnect25

Can't connect error.

CantResolve26

Can't resolve error.

ConnectionError27

Connection error.

CantAcquireResource28

Can't acquire resource error.

CantFork29

Can't fork process error.

InvalidData30

Invalid data error.

InvalidParameter31

Invalid parameter error.

AlreadyExists32

Already exists error.

DoesNotExist33

Does not exist error.

DatabaseCantRead34

Database: Read error.

DatabaseCantWrite35

Database: Write error.

CompilationFailed36

Compilation failed error.

MethodNotFound37

Method not found error.

LinkFailed38

Linking failed error.

ScriptFailed39

Script failed error.

CyclicLink40

Cycling link (import cycle) error.

InvalidDeclaration41

Invalid declaration error.

DuplicateSymbol42

Duplicate symbol error.

ParseError43

Parse error.

Busy44

Busy error.

Skip45

Skip error.

Help46

Help error.

Bug47

Bug error.

PrinterOnFire48

Printer on fire error. (This is an easter egg, no engine methods return this error code.)

See Also