Error
Engine operation result codes. Error.Ok means success.
Compare an operation result with Error.Ok. Other values identify the failure; success is not represented by true.
Check the error immediately after loading, saving or changing a level. On failure, do not use the result as a successfully loaded resource. Consult the called method for its behavior and possible error codes.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Fields and constants49
AlreadyExistsField
AlreadyExists = 32Already exists error.
AlreadyInUseField
AlreadyInUse = 22Already in use error.
BugField
Bug = 47An internal implementation error. If a built-in method returns this code, record the exact method, arguments and engine version, and reduce the problem to a minimal reproducible project.
BusyField
Busy = 44Busy error.
CantAcquireResourceField
CantAcquireResource = 28Can't acquire resource error.
CantConnectField
CantConnect = 25Can't connect error.
CantCreateField
CantCreate = 20Can't create error.
CantForkField
CantFork = 29Can't fork process error.
CantOpenField
CantOpen = 19Can't open error.
CantResolveField
CantResolve = 26Can't resolve error.
CompilationFailedField
CompilationFailed = 36Compilation failed error.
ConnectionErrorField
ConnectionError = 27Connection error.
CyclicLinkField
CyclicLink = 40Cycling link (import cycle) error.
DatabaseCantReadField
DatabaseCantRead = 34Database: Read error.
DatabaseCantWriteField
DatabaseCantWrite = 35Database: Write error.
DoesNotExistField
DoesNotExist = 33Does not exist error.
DuplicateSymbolField
DuplicateSymbol = 42Duplicate symbol error.
FailedField
Failed = 1Generic error.
FileAlreadyInUseField
FileAlreadyInUse = 11File: Already in use error.
FileBadDriveField
FileBadDrive = 8File: Bad drive error.
FileBadPathField
FileBadPath = 9File: Bad path error.
FileCantOpenField
FileCantOpen = 12File: Can't open error.
FileCantReadField
FileCantRead = 14File: Can't read error.
FileCantWriteField
FileCantWrite = 13File: Can't write error.
FileCorruptField
FileCorrupt = 16File: Corrupt error.
FileEofField
FileEof = 18File: End of file (EOF) error.
FileMissingDependenciesField
FileMissingDependencies = 17File: Missing dependencies error.
FileNoPermissionField
FileNoPermission = 10File: No permission error.
FileNotFoundField
FileNotFound = 7File: Not found error.
FileUnrecognizedField
FileUnrecognized = 15File: Unrecognized error.
HelpField
Help = 46Help error. Used internally when passing --version or --help as executable options.
InvalidDataField
InvalidData = 30Invalid data error.
InvalidDeclarationField
InvalidDeclaration = 41Invalid declaration error.
InvalidParameterField
InvalidParameter = 31Invalid parameter error.
LinkFailedField
LinkFailed = 38Linking failed error.
LockedField
Locked = 23Locked error.
MethodNotFoundField
MethodNotFound = 37Method not found error.
OkField
Ok = 0Methods that return Error return OK when no error occurred.
Since OK has value 0, and all other error constants are positive integers, it can also be used in boolean checks.
Note: Many functions do not return an error code, but will print error messages to standard output.
OutOfMemoryField
OutOfMemory = 6Out of memory (OOM) error.
ParameterRangeErrorField
ParameterRangeError = 5Parameter range error.
ParseErrorField
ParseError = 43Parse error.
PrinterOnFireField
PrinterOnFire = 48Printer on fire error (this is an easter egg, no built-in methods return this error code).
QueryFailedField
QueryFailed = 21Query failed error.
ScriptFailedField
ScriptFailed = 39Script failed error.
SkipField
Skip = 45Skip error.
TimeoutField
Timeout = 24Timeout error.
UnauthorizedField
Unauthorized = 4Unauthorized error.
UnavailableField
Unavailable = 2Unavailable error.
UnconfiguredField
Unconfigured = 3Unconfigured error.