xoreos  0.0.5
Public Types | Public Member Functions | Private Attributes | List of all members
Common::StackException Class Reference

Exception that provides a stack of explanations. More...

#include <error.h>

Inheritance diagram for Common::StackException:
Inheritance graph
[legend]
Collaboration diagram for Common::StackException:
Collaboration graph
[legend]

Public Types

typedef std::stack< UStringStack
 

Public Member Functions

 StackException ()
 
 StackException (const char *s,...) GCC_PRINTF(2
 
 StackException (const StackException &e)
 
 StackException (const std::exception &e)
 
 ~StackException () throw ()
 
void add (const char *s,...) GCC_PRINTF(2
 
void void add (const std::exception &e)
 
const char * what () const throw ()
 
bool empty () const
 
StackgetStack ()
 

Private Attributes

Stack _stack
 

Detailed Description

Exception that provides a stack of explanations.

Definition at line 36 of file error.h.

Member Typedef Documentation

◆ Stack

Definition at line 38 of file error.h.

Constructor & Destructor Documentation

◆ StackException() [1/4]

Common::StackException::StackException ( )

Definition at line 34 of file error.cpp.

◆ StackException() [2/4]

Common::StackException::StackException ( const char *  s,
  ... 
)

Definition at line 37 of file error.cpp.

References _stack, and STRINGBUFLEN.

◆ StackException() [3/4]

Common::StackException::StackException ( const StackException e)

Definition at line 48 of file error.cpp.

◆ StackException() [4/4]

Common::StackException::StackException ( const std::exception &  e)

Definition at line 51 of file error.cpp.

References add().

Here is the call graph for this function:

◆ ~StackException()

Common::StackException::~StackException ( )
throw (
)

Definition at line 55 of file error.cpp.

Member Function Documentation

◆ add() [1/2]

void Common::StackException::add ( const char *  s,
  ... 
)

Definition at line 58 of file error.cpp.

References _stack, and STRINGBUFLEN.

Referenced by add(), Aurora::GDAFile::add(), Engines::KotOR::SaveLoadMenu::addSavedGameItems(), Engines::DragonAge::Area::Area(), Engines::DragonAge2::Area::Area(), Graphics::CBGT::CBGT(), Graphics::Aurora::Texture::create(), Graphics::Aurora::FontManager::createFont(), Graphics::Aurora::ModelNode_DragonAge::createVertexBuffer(), Common::DateTime::DateTime(), Aurora::Small::decompress(), Engines::NWN2::Module::enter(), Engines::Witcher::Module::enter(), Engines::NWN::Module::enter(), Engines::KotOR::Creature::equipItem(), Common::exceptionDispatcher(), Engines::Jade::Functions::executeScript(), Engines::KotOR::MenuEquipment::fillEquipableItemsList(), Engines::KotOR::ContainerMenu::fillFromInventory(), Engines::indexMandatoryArchive(), Engines::indexMandatoryDirectory(), Engines::indexOptionalArchive(), Engines::indexOptionalDirectory(), Graphics::NCLR::load(), Graphics::NBFS::load(), Graphics::TPC::load(), Graphics::XEOSITEX::load(), Graphics::TXB::load(), Graphics::SBM::load(), Graphics::WinIconImage::load(), Aurora::CDPTH::load(), Sound::XACTWaveBank::load(), Graphics::DDS::load(), Engines::NWN::GUI::load(), Graphics::TGA::load(), Engines::Jade::Placeable::load(), Engines::Jade::Trigger::load(), Aurora::OBBFile::load(), Aurora::TalkTable_GFF::load(), Engines::Jade::Creature::load(), Aurora::HERFFile::load(), Aurora::RIMFile::load(), Aurora::NDSFile::load(), Aurora::KEYFile::load(), Engines::Jade::GUI::load(), Engines::KotOR::GUI::load(), Aurora::BZFFile::load(), Aurora::TalkTable_TLK::load(), Aurora::SSFFile::load(), Aurora::BIFFile::load(), Aurora::NSBTXFile::load(), Aurora::GFF3File::load(), Aurora::GDAFile::load(), Aurora::TwoDAFile::load(), Aurora::GFF4File::load(), Aurora::ERFFile::load(), Aurora::TwoDARegistry::load2DA(), Engines::Witcher::Module::loadAreas(), Engines::NWN2::Module::loadAreas(), Engines::NWN::Module::loadAreas(), Engines::Jade::AreaLayout::loadART(), Engines::NWN2::Campaign::loadCampaign(), Engines::DragonAge::Campaigns::loadCampaign(), Engines::DragonAge2::Campaigns::loadCampaign(), Engines::Witcher::Campaign::loadCampaign(), Engines::Witcher::Campaign::loadCampaignFile(), Engines::NWN2::Campaign::loadCampaignResource(), Aurora::TwoDARegistry::loadGDA(), Engines::Jade::AreaLayout::loadLYT(), Engines::KotOR2::Area::loadLYT(), Engines::KotOR::Area::loadLYT(), Aurora::TwoDARegistry::loadMGDA(), Engines::Sonic::AreaMiniMap::loadMiniMap(), Engines::Jade::Module::loadModule(), Engines::Witcher::Module::loadModule(), Engines::NWN2::Module::loadModule(), Engines::KotOR2::Module::loadModule(), Engines::NWN::Module::loadModule(), Engines::KotOR::Module::loadModule(), Engines::Sonic::AreaBackground::loadTexture(), Engines::NWN::Area::loadTileset(), Engines::Jade::AreaLayout::loadVIS(), Engines::KotOR2::Area::loadVIS(), Engines::KotOR::Area::loadVIS(), Graphics::NCGR::NCGR(), Aurora::NWScript::NCSFile::o_action(), Graphics::Aurora::Model_DragonAge::ParserContext::ParserContext(), Aurora::readCells(), Graphics::CBGT::readCells(), Graphics::Aurora::ModelNode_DragonAge::readMAO(), Graphics::CBGT::readPaletteIndices(), Graphics::CBGT::readPalettes(), Graphics::Aurora::Texture::reload(), Engines::Sonic::Module::run(), StackException(), Engines::NWN2::TRXFile::TRXFile(), Engines::NWN2::Campaign::usePC(), Engines::Witcher::Campaign::usePC(), Engines::NWN::Module::usePC(), and Common::XMLParser::XMLParser().

◆ add() [2/2]

void Common::StackException::add ( const std::exception &  e)

Definition at line 69 of file error.cpp.

References add().

Here is the call graph for this function:

◆ empty()

bool Common::StackException::empty ( ) const

Definition at line 80 of file error.cpp.

References _stack.

Referenced by Events::RequestManager::callInMainThread().

Here is the caller graph for this function:

◆ getStack()

StackException::Stack & Common::StackException::getStack ( )

Definition at line 84 of file error.cpp.

References _stack.

Referenced by Common::printException(), and Engines::Console::printException().

Here is the caller graph for this function:

◆ what()

const char * Common::StackException::what ( ) const
throw (
)

Member Data Documentation

◆ _stack

Stack Common::StackException::_stack
private

Definition at line 56 of file error.h.

Referenced by add(), empty(), getStack(), StackException(), and what().


The documentation for this class was generated from the following files: