All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.core.GodotError.kt Maven / Gradle / Ivy

There is a newer version: 0.11.0-4.3
Show newest version
package godot.core

// Should have same order as godot/core/error_list.h
enum class GodotError {
    OK, // (0)
    FAILED, ///< Generic fail error
    ERR_UNAVAILABLE, ///< What is requested is unsupported/unavailable
    ERR_UNCONFIGURED, ///< The object being used hasn't been properly set up yet
    ERR_UNAUTHORIZED, ///< Missing credentials for requested resource
    ERR_PARAMETER_RANGE_ERROR, ///< Parameter given out of range (5)
    ERR_OUT_OF_MEMORY, ///< Out of memory
    ERR_FILE_NOT_FOUND,
    ERR_FILE_BAD_DRIVE,
    ERR_FILE_BAD_PATH,
    ERR_FILE_NO_PERMISSION, // (10)
    ERR_FILE_ALREADY_IN_USE,
    ERR_FILE_CANT_OPEN,
    ERR_FILE_CANT_WRITE,
    ERR_FILE_CANT_READ,
    ERR_FILE_UNRECOGNIZED, // (15)
    ERR_FILE_CORRUPT,
    ERR_FILE_MISSING_DEPENDENCIES,
    ERR_FILE_EOF,
    ERR_CANT_OPEN, ///< Can't open a resource/socket/file
    ERR_CANT_CREATE, // (20)
    ERR_QUERY_FAILED,
    ERR_ALREADY_IN_USE,
    ERR_LOCKED, ///< resource is locked
    ERR_TIMEOUT,
    ERR_CANT_CONNECT, // (25)
    ERR_CANT_RESOLVE,
    ERR_CONNECTION_ERROR,
    ERR_CANT_ACQUIRE_RESOURCE,
    ERR_CANT_FORK,
    ERR_INVALID_DATA, ///< Data passed is invalid (30)
    ERR_INVALID_PARAMETER, ///< Parameter passed is invalid
    ERR_ALREADY_EXISTS, ///< When adding, item already exists
    ERR_DOES_NOT_EXIST, ///< When retrieving/erasing, if item does not exist
    ERR_DATABASE_CANT_READ, ///< database is full
    ERR_DATABASE_CANT_WRITE, ///< database is full (35)
    ERR_COMPILATION_FAILED,
    ERR_METHOD_NOT_FOUND,
    ERR_LINK_FAILED,
    ERR_SCRIPT_FAILED,
    ERR_CYCLIC_LINK, // (40)
    ERR_INVALID_DECLARATION,
    ERR_DUPLICATE_SYMBOL,
    ERR_PARSE_ERROR,
    ERR_BUSY,
    ERR_SKIP, // (45)
    ERR_HELP, ///< user requested help!!
    ERR_BUG, ///< a bug in the software certainly happened, due to a double check failing or unexpected behavior.
    ERR_PRINTER_ON_FIRE; /// the parallel port printer is engulfed in flames

    companion object {
        fun from(value: Long) = entries[value.toInt()]
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy