#define NR_ASSERT | ( | exp | ) | ::nrEngine::Exception::Assert(exp, #exp, __FILE__, "" , __LINE__ ) |
Assertion definition used in the engine. This assertion will produce more readable text.
Definition at line 33 of file Exception.h.
Referenced by nrEngine::Profiler::beginProfile(), nrEngine::ResourceManager::createResource(), nrEngine::Profiler::endProfile(), nrEngine::IResourcePtr::getBase(), nrEngine::ScriptEngine::getFunction(), nrEngine::ResourceManager::loadResource(), nrEngine::ResourcePtr< ResType >::operator->(), nrEngine::VarArg::pop_back(), and nrEngine::VarArg::pop_front().
#define NR_EXCEPT | ( | num, | |||
desc, | |||||
src | ) | throw( ::nrEngine::Exception( num, desc, src, __FILE__, __LINE__ ) ) |
This is a macro which throw an exception object
Definition at line 27 of file Exception.h.
Referenced by nrEngine::IScript::call(), nrEngine::PropertyManager::get(), nrEngine::PropertyManager::getByFullName(), and nrEngine::PropertyList::operator[]().
enum nrEngine::ResultCode |
nrEngine's error codes returned back by some functions.
You can combine error codes of different groups in binary manner (e.g. BAD_PARAMETERS | OUT_OF_MEMORY).
OK | Don't worry, no error occurs. That is fine :-). |
UNKNOWN_ERROR | Will be given back if the engine can not detect what kind of error does occurs. |
BAD_PARAMETERS | The parameters given to the function are not valid. |
OUT_OF_MEMORY | Engine couldn't allocate a block of memory because (prob.) no memory available. |
NOT_VALID_DATOR | The dator does not contain valid data. |
TIME_OUT | Generic time out error. |
FILE_ERROR | This is a general "group error" produced by work on the files. |
FILE_NOT_FOUND | If file was not found, so this error will be given back. |
FILE_ERROR_IN_LINE | If file has got errors by reading out of a line. |
PROFILE_ERROR | General error of the profile error group. |
PROFILE_NOT_FOUND | If the specified profile was not found. |
PROFILE_NOT_LOADED | If the specified profile is currently not loaded. |
PROFILE_NOT_EXISTS | If the specified profile does not exists. |
PROFILE_ALREADY_EXISTS | If the profile you requesting already exists. |
VFS_ERROR | This is an error defining the virtual file system error group. |
VFS_ALREADY_OPEN | If you try to open the file system and it is already opened. |
VFS_CANNOT_OPEN | If the engine couldn't open the virtual file system. |
VFS_CANNOT_CLOSE | If the vfs subsystem couldn't be closed. |
VFS_IS_NOT_OPEN | Do you tried to request a file, but forgott to open the file system? |
VFS_FILE_NOT_FOUND | The requested file was not found in the vfs. |
VFS_FILE_NOT_OPEN | You can not retrieve data from a file, if it was not opened before. |
VFS_FILE_END_REACHED | The reading of the file found an EOF signal. |
VFS_FILE_READ_ERROR | File couldn't be readed for many of reasons. |
VFS_LINE_READ_ERROR | The line of a file couldn't be readed. |
VFS_SCAN_READ_ERROR | Scan methof fails because of wrong readed data or so. |
VFS_SEEK_ERROR | Seeking in the file failed, probably the seek position is to wide. |
VFS_NO_PARAMETER | No such parameter exists. |
SETTINGS_ERROR | Any error produced by the settings manager is in this group. |
SETTINGS_VAR_ALREADY_REGISTERED | If you try to register a variable that already registered. |
SETTINGS_VAR_NOT_REGISTERED | The variable you requesting is not registered. |
KERNEL_ERROR | Any error that is thrown in the kernel subsystem is in this group. |
KERNEL_NO_TASK_FOUND | There were no task found. |
KERNEL_NO_RIGHTS | You do not have rights for this operation. |
KERNEL_TASK_NOT_READY | The appropriate task is not ready. |
KERNEL_CIRCULAR_DEPENDENCY | This error comes if there is a circuit dependencies in the kernel task list. |
KERNEL_TASK_MISSING | If tasks are missing, that should be in the pipeline. |
KERNEL_END_REACHED | This error comes if an end of itarating is reached. |
KERNEL_ALREADY_VISITED | This error comes if the given task was already updated in this cycle. |
KERNEL_LEAF_TASK | We are on the leaf in the task dependency tree. |
CLOCK_ERROR | Our clock subsystem has got also it's own error group. |
CLOCK_OBSERVER_NOT_FOUND | There is no time observer. |
CLOCK_OBSERVER_ALREADY_ADDED | This observer is already observing the time. |
CLOCK_NO_TIME_SOURCE | No time source is currently bounded. |
FW_ERROR | There are errors produced by the engine's framework subsystem. |
FW_CANNOT_INITIALIZE | THe framework couldn't be initialized. |
FW_FAILED_TO_RESIZE | The framework is failed to resize. |
FW_INVALID_RC_ID | The rendering context id you give is not valid. |
FW_ALREADY_INIT | The framework is already initialized. |
FW_NOT_INITIALIZED | The framework subsystem is not initialized at the moment. |
FW_RC_CANNOT_SETUP_PIXEL_FORMAT | The rendering context couldn't setup the pixel format. |
RES_ERROR | Each error produced by the resource manager is in this group. |
RES_LOADER_ALREADY_EXISTS | For this type of resources there is already a loader. |
RES_LOADER_NOT_REGISTERED | The loader is not registered. |
RES_ALREADY_EXISTS | This resource alreaedy exists in the resource database. |
RES_BAD_FILETYPE | The file type of the resource is not valid. |
RES_CAN_NOT_LOAD_EMPTY | Empty resource couldn't be loaded. |
RES_NOT_FOUND | The requested resource was not found. |
RES_LOADER_NOT_EXISTS | There is no loader for such kind of resources. |
RES_IS_EMPTY | This resource is empty. |
RES_GROUP_NOT_FOUND | Such resource group was not found. |
RES_PTR_IS_NULL | The pointer to the resource is equal to null. |
RES_TYPE_NOT_SUPPORTED | The resource type of the given resource is not supported. |
RES_LOCK_STATE_STACK_IS_FULL | We can not lock anymore, because the lock state stack is full. |
RES_NO_EMPTY_RES_FOUND | No empty resource was created before. |
PLG_ERROR | This are plugin managment errors. |
PLG_COULD_NOT_LOAD | Plugin could not be loaded. |
PLG_CANNOT_INITIALIZE | Plugin library could not been initialized. |
PLG_EXTERNAL_ERROR | Plugin throws an error. |
PLG_SYMBOL_NOT_FOUND | Plugin symbol is not defined. |
PLG_WRONG_VERSION | Plugin version does not accords to the engine's one. |
PLG_UNLOAD_ERROR | Plugin could not been unloaded properly. |
SCRIPT_ERROR | Generic script error. |
SCRIPT_PARSE_ERROR | The given script could not be parsed. |
SCRIPT_FUNCTION_REGISTERED | The function you want register is already in the database. |
SCRIPT_FUNCTION_NOT_REGISTERED | The function you want access is is not in the database. |
SCRIPT_FUNCTION_NOT_FOUND | This function was not found in the script. |
SCRIPT_WRONG_PARAMETER_VALUE | Wrong parameter value given. |
SCRIPT_ALREADY_RUNNING | Script is already running. |
EVENT_ERROR | Generic event management error. |
EVENT_CHANNEL_EXISTS | We already does have this event channel in our database. |
EVENT_NO_CHANNEL_FOUND | There is no channel whith the given name. |
EVENT_ALREADY_CONNECTED | The actor is already connected to a certain communication channel. |
EVENT_NOT_CONNECTED | The actor is not connected to a certain communication channel. |
EVENT_CHANNEL_NOT_EXISTS | We do not have this event channel in our database. |
EVENT_COULD_NOT_CAST | Event of the given type could not be casted to another type. |
EVENT_FACTORY_FOUND | A given factory name is already in the database. |
EVENT_FACTORY_NOT_FOUND | There is no such factory with the given name. |
EVENT_NO_VALID_ACTOR | Given actor is not valid. |
PROPERTY_ERROR | Generic group for properties errors. |
PROPERTY_NOT_EXISTS | No such property exists. |
PROPERTY_WRONG_TYPE | Wrong property type, so cannot cast. |
ENGINE_ERROR | This are general engine layer errors. |