Classes | Static Public Member Functions
utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result > Struct Template Reference

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:
idThe identifer
Exceptions:
utilmm::factory_toolbox::error::exceptionThe 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:
idThe identifier of the creation method
Exceptions:
utilmm::factory_toolbox::error::exceptionThere'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:


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:31