The Vish Visualization Shell 0.3
Vish
Public Member Functions | Public Attributes | List of all members
MemCore::Exception Struct Reference

Base class for exceptions. More...

#include <elementary/memcore/Exception.hpp>

Inheritance diagram for MemCore::Exception:
MemCore::Cache::OutOfMemory MemCore::Creature::Exception Wizt::RenderException Wizt::VObjectIsOutOfMemory MemCore::CreatorBase< Domain >::Exception Wizt::GLError Wizt::BufferArray::Error Wizt::GLOutOfMemory Wizt::GLProgram::Error Wizt::Shader::Error Wizt::UserRenderException Wizt::VBO::Error Wizt::BufferArray::Inconsistency Wizt::GLProgram::CannotAssignUniform Wizt::GLProgram::LinkerError Wizt::GLProgram::NoSuchAttribute Wizt::GLProgram::NoSuchUniform Wizt::GLProgram::NotSupportedCall Wizt::URenderException< GLCacheError > Wizt::URenderException< Domain, ExceptionBase >

Public Member Functions

 Exception ()
 Empty construction.
 
 Exception (const char *s, const char *filename=0, int LineNo=0) noexcept
 Construct description from native C string.
 
 Exception (const Exception &E) noexcept
 Copy constructor with description.
 
 Exception (const std::string &s, const char *filename=nullptr, int LineNo=0) noexcept
 Construct from STL string.
 

Public Attributes

simplestring description
 optional detailed description
 
unsigned sourcefilelinenumber
 source line number
 
simplestring sourcefilename
 source file name
 

Detailed Description

Base class for exceptions.

Note: within an exception class, do NOT use std::string . Instead, using MemCore::simplestring is exception-safe.

Use MEMCORE_EXCEPTION_SRC to assign source file information.

Author
Werner Benger