Honeycomb  0.1
Component-Model Framework
Public Types | Public Member Functions | List of all members
honey::exception::Std< T > Struct Template Reference

Wrapper around std exception to allow for polymorphic throw. More...

#include <Exception.h>

Inheritance diagram for honey::exception::Std< T >:
Inheritance graph
[legend]
Collaboration diagram for honey::exception::Std< T >:
Collaboration graph
[legend]

Public Types

typedef SharedPtr< Std > Ptr
 
typedef SharedPtr< const Std > ConstPtr
 

Public Member Functions

 Std (const T &e)
 
virtual Exception::Ptr clone () const
 
virtual String typeName () const
 
virtual void raise () const
 
- Public Member Functions inherited from honey::Exception
 Exception ()=default
 
 Exception (const Exception &rhs)
 
Exception & operator= (const Exception &rhs)
 
const Source & source () const
 Get info about source where exception was thrown. More...
 
const String & message () const
 Get custom error message. The error message can be appended to using global operator<<(Exception, String) More...
 
const char * what () const throw ()
 Get full diagnostic message. More...
 
template<class T >
MsgStream operator<< (T &&val)
 Append custom error message. More...
 
- Public Member Functions inherited from honey::SharedObj< Exception >
 SharedObj (Alloc &&a=Alloc()) debug_if(
 Construct with allocator that is called to deallocate this shared object when all references have been released. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from honey::Exception
static Ptr current ()
 Create a clone of the current exception caught with (...) More...
 
- Protected Member Functions inherited from honey::Exception
virtual String createWhat () const
 Create what message. Called only on demand and result is cached. More...
 
- Protected Member Functions inherited from honey::SharedObj< Exception >
void finalize ()
 Destroys object. Called when strong reference count reaches 0. May be overridden to prevent destruction. More...
 

Detailed Description

template<class T>
struct honey::exception::Std< T >

Wrapper around std exception to allow for polymorphic throw.

Member Typedef Documentation

template<class T>
typedef SharedPtr<const Std> honey::exception::Std< T >::ConstPtr
template<class T>
typedef SharedPtr<Std> honey::exception::Std< T >::Ptr

Constructor & Destructor Documentation

template<class T>
honey::exception::Std< T >::Std ( const T &  e)
inline

Member Function Documentation

template<class T>
virtual Exception::Ptr honey::exception::Std< T >::clone ( ) const
inlinevirtual
template<class T>
virtual void honey::exception::Std< T >::raise ( ) const
inlinevirtual
template<class T>
virtual String honey::exception::Std< T >::typeName ( ) const
inlinevirtual

The documentation for this struct was generated from the following file: