Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# KeosException.h File Reference

`#include "KeosPrerequisites.h"`

Go to the source code of this file.

## Namespaces

namespace | Keos

## Defines

#define | BADDELETE_EXCEPT(p, f, l, a) {Keos::CBadDelete except((p), (f), (l), (a)); LOG_TMP}
#define | LOADINGFAILED_EXCEPT(f, m, s) {Keos::CLoadingFailed except((f), (m), (s)); LOG_TMP}
#define | DYNLIB_EXCEPT(f, m, s) {Keos::CDynLibError except((f), (m), (s)); LOG_TMP}
#define | OUTOFMEMORY_EXCEPT(m, s) {Keos::COutOfMemory except((m), (s)); LOG_TMP}
#define | UNSUPPORTED_EXCEPT(m, s) {Keos::CUnsupported except((m), (s)); LOG_TMP}
#define | BADCONVERSION_EXCEPT(m, s) {Keos::CBadConversion except((m), (s)); LOG_TMP}
#define | LOG_TMP except.SetFileLine(__FILE__, __LINE__); Keos::ILogger::Log("%s",except.what_short()); throw except;
#define | Assert(condition) DoNothing(!(condition))

## Functions

void | DoNothing (bool)

## Define Documentation

#define Assert | ( | condition |  | ) | DoNothing(!(condition))

| Definition at line 106 of file KeosException.h. Referenced by Keos::CResourceManager::Add(), Keos::CConsole::ChangeLook(), Keos::CD3D9RenderSystem::CheckFormat(), Keos::CModel::CModel(), Keos::CBuffer< T >::Fill(), Keos::CRoot::Initialise(), Keos::ILogger::Log(), Keos::CSmartPtr< T, Ownership >::operator *(), Keos::CSmartPtr< T, Ownership >::operator->(), Keos::CRoot::StartRendering(), Keos::CImage::SubImage(), Keos::COGLTexture::Update(), Keos::CD3D9Texture::Update(), Keos::IRenderSystem::UpdateAllRenderTargets(), and Keos::CLoggerFile::Write().

#define BADCONVERSION_EXCEPT | ( | m,
|  | s |  | ) | {Keos::CBadConversion except((m), (s)); LOG_TMP}

| Definition at line 32 of file KeosException.h.

#define BADDELETE_EXCEPT | ( | p,
|  | f,
|  | l,
|  | a |  | ) | {Keos::CBadDelete except((p), (f), (l), (a)); LOG_TMP}

| Definition at line 27 of file KeosException.h.

#define DYNLIB_EXCEPT | ( | f,
|  | m,
|  | s |  | ) | {Keos::CDynLibError except((f), (m), (s)); LOG_TMP}

| Definition at line 29 of file KeosException.h. Referenced by Keos::CDynLib::Load(), Keos::CRoot::LoadPlugin(), and Keos::CDynLib::Unload().

#define LOADINGFAILED_EXCEPT | ( | f,
|  | m,
|  | s |  | ) | {Keos::CLoadingFailed except((f), (m), (s)); LOG_TMP}

| Definition at line 28 of file KeosException.h. Referenced by Keos::CLoggerFile::CLoggerFile(), Keos::CFontManager::DrawString(), Keos::CMediaManager::FindLoader(), Keos::CMediaManager::FindMedia(), Keos::CFontManager::GetFontHeight(), Keos::CFontManager::GetStringPixelSize(), Keos::CTexture::Load(), Keos::CMDLQ1Loader::LoadColorMap(), Keos::CFontManager::LoadFont(), Keos::CShadersLoader::LoadFromFile(), Keos::CMDLQ1Loader::LoadFromFile(), Keos::CMD2Loader::LoadFromFile(), Keos::ILoader< CModel >::LoadFromFile(), Keos::CImagesLoader::LoadFromFile(), Keos::ILoader< CModel >::SaveToFile(), and Keos::CImagesLoader::SaveToFile().

#define LOG_TMP except.SetFileLine(__FILE__, __LINE__); Keos::ILogger::Log("%s",except.what_short()); throw except;

| Definition at line 34 of file KeosException.h.

#define OUTOFMEMORY_EXCEPT | ( | m,
|  | s |  | ) | {Keos::COutOfMemory except((m), (s)); LOG_TMP}

| Definition at line 30 of file KeosException.h.

#define UNSUPPORTED_EXCEPT | ( | m,
|  | s |  | ) | {Keos::CUnsupported except((m), (s)); LOG_TMP}

| Definition at line 31 of file KeosException.h. Referenced by Keos::ConvertPixel().

## Function Documentation

void DoNothing | ( | bool |  | ) | `[inline]`

| Definition at line 105 of file KeosException.h.