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

ExceptionImpl.h File Reference

#include "smbios/compat.h"
#include <map>
#include <string>
#include <sstream>
#include <exception>
#include "smbios/types.h"
#include "smbios/IException.h"
#include "smbios/config/abi_prefix.hpp"
#include "smbios/config/abi_suffix.hpp"

Go to the source code of this file.

Namespaces

namespace  smbios

Classes

class  Exception

Defines

#define DEFINE_EXCEPTION_EX(excName, ns, superclass)
#define THROW(Type, txt)   throw Type ( std::string( __FILE__ ## ":Line " ## LIBSMBIOS_STRINGIZE(__LINE__)) + txt)

Functions

 DEFINE_EXCEPTION_EX (NotImplementedImpl, smbios, NotImplemented)
 DEFINE_EXCEPTION_EX (InternalErrorImpl, smbios, InternalError)
 DEFINE_EXCEPTION_EX (PermissionExceptionImpl, smbios, PermissionException)


Define Documentation

#define DEFINE_EXCEPTION_EX excName,
ns,
superclass   ) 
 

Value:

class excName : public smbios::Exception< ns :: superclass >  \
    {                                       \
    public:                                 \
        ~excName() throw() {};  \
        excName( const std::string initMessage ) : smbios::Exception< ns :: superclass >(initMessage) {} ;\
        excName( const excName &src ) : smbios::Exception< ns :: superclass >(src) {} ;\
        excName( ) : smbios::Exception< ns :: superclass >() {} ;\
    }

Definition at line 39 of file ExceptionImpl.h.

#define THROW Type,
txt   )     throw Type ( std::string( __FILE__ ## ":Line " ## LIBSMBIOS_STRINGIZE(__LINE__)) + txt)
 

Definition at line 53 of file ExceptionImpl.h.


Function Documentation

DEFINE_EXCEPTION_EX PermissionExceptionImpl  ,
smbios  ,
PermissionException 
 

Used in cases where operating system privleges prevent an action.

DEFINE_EXCEPTION_EX InternalErrorImpl  ,
smbios  ,
InternalError 
 

Used in cases where something that "cannot happen" happens. Raised in instances usually caused by some internal class state becoming corrupted.

DEFINE_EXCEPTION_EX NotImplementedImpl  ,
smbios  ,
NotImplemented 
 

Raised when some class does not implement part of the public interface Used mainly in classes where there are optional parts of the interface defined that require extra external functionality, such as XML, for example.


Generated on Tue Feb 26 14:39:35 2008 for SMBIOS Library by  doxygen 1.3.9.1