$search

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

default utilmm::factory error policy More...

#include <factory_error.hh>

List of all members.

Classes

class  exception
 factory error exception More...

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

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>

Definition at line 31 of file factory_error.hh.


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

Definition at line 63 of file factory_error.hh.

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

Definition at line 78 of file factory_error.hh.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Mar 1 16:28:52 2013