utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result > Struct Template Reference
[Factory design pattern]

default utilmm::factory error policy More...

#include <utilmm/types/bits/factory_error.hh>

List of all members.

Static Public Member Functions

template<typename Ty>
static Ty on_unknown_id (IdentifierType const &id)
 unknown id error
static Result on_unknown_type (IdentifierType const &id)
 unknown creation method error

Classes

class  exception
 factory error exception More...


Detailed Description

template<class AbstractProduct, typename IdentifierType, typename Result>
struct utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result >

default utilmm::factory error policy

This class implements the default error policy for utilmm::factory class. This error policy will throw an exception on error

Author:
Frédéric Py <fpy@laas.fr>

Member Function Documentation

template<class AbstractProduct, typename IdentifierType, typename Result>
template<typename Ty>
static Ty utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result >::on_unknown_id ( IdentifierType const &  id  )  [inline, static]

unknown id error

Thsi function will be called by utilmm::factory if user request for an unknown identifier

Parameters:
id The identifer
Exceptions:
utilmm::factory_toolbox::error::exception The identifier is unknown

template<class AbstractProduct, typename IdentifierType, typename Result>
static Result utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result >::on_unknown_type ( IdentifierType const &  id  )  [inline, static]

unknown creation method error

Thsi function will be called by utilmm::factory if user request for an unknown creation method

Parameters:
id The identifier of the creation method
Exceptions:
utilmm::factory_toolbox::error::exception There's no creation merthod attached to id


The documentation for this struct was generated from the following file:
Generated on Tue Feb 19 10:51:02 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page