Util--  1.1
Classes | Static Public Member Functions | List of all members
utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result > Struct Template Reference

default utilmm::factory error policy More...

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

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 More...
 
static Result on_unknown_type (IdentifierType const &id)
 unknown creation method error 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@l.nosp@m.aas..nosp@m.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)
inlinestatic

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
template<class AbstractProduct , typename IdentifierType , typename Result >
static Result utilmm::factory_toolbox::error< AbstractProduct, IdentifierType, Result >::on_unknown_type ( IdentifierType const &  id)
inlinestatic

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

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

Generated on Tue Oct 9 2018 10:12:46 for Util-- by doxygen 1.8.6
SourceForge.net Project Page