codac
Public Member Functions | Static Protected Member Functions | List of all members
codac::DomainsTypeException Class Reference

Exception raised if the domains connected to a contractor in a CN are not consistent with the contractor definition. More...

#include <codac_DomainsTypeException.h>

Inheritance diagram for codac::DomainsTypeException:
Inheritance graph
[legend]
Collaboration diagram for codac::DomainsTypeException:
Collaboration graph
[legend]

Public Member Functions

 DomainsTypeException (const std::string &ctc_name, const std::vector< Domain *> &v_ptr_domains, const std::vector< std::string > &v_str_expected_doms)
 Creates a DomainsTypeException from a vector of pointers to Domain objects. More...
 
 DomainsTypeException (const std::string &ctc_name, const std::vector< Domain > &v_domains, const std::vector< std::string > &v_str_expected_doms)
 Creates a DomainsTypeException from a vector of Domain objects. More...
 
- Public Member Functions inherited from codac::Exception
 Exception (const std::string &function_name, const std::string &custom_message)
 Creates an std::exception related to a C++ function and some custom error message. More...
 
 ~Exception () throw ()
 Exception destructor.
 
virtual const char * what () const throw ()
 Returns the exception message. More...
 

Static Protected Member Functions

static std::string exception_message (const std::string &ctc_name, const std::vector< Domain > &v_domains, const std::vector< std::string > &v_str_expected_doms)
 Generates the Exception message. More...
 
static std::string exception_message (const std::string &ctc_name, const std::vector< Domain *> &v_ptr_domains, const std::vector< std::string > &v_str_expected_doms)
 Generates the Exception message. More...
 

Detailed Description

Exception raised if the domains connected to a contractor in a CN are not consistent with the contractor definition.

Constructor & Destructor Documentation

◆ DomainsTypeException() [1/2]

codac::DomainsTypeException::DomainsTypeException ( const std::string &  ctc_name,
const std::vector< Domain *> &  v_ptr_domains,
const std::vector< std::string > &  v_str_expected_doms 
)

Creates a DomainsTypeException from a vector of pointers to Domain objects.

Parameters
ctc_namethe contractor class name
v_ptr_domainspointers to the domains provided by the user
v_str_expected_domsthe allowed definitions for the contractor

◆ DomainsTypeException() [2/2]

codac::DomainsTypeException::DomainsTypeException ( const std::string &  ctc_name,
const std::vector< Domain > &  v_domains,
const std::vector< std::string > &  v_str_expected_doms 
)

Creates a DomainsTypeException from a vector of Domain objects.

Parameters
ctc_namethe contractor class name
v_domainsthe domains provided by the user
v_str_expected_domsthe allowed definitions for the contractor

Member Function Documentation

◆ exception_message() [1/2]

static std::string codac::DomainsTypeException::exception_message ( const std::string &  ctc_name,
const std::vector< Domain > &  v_domains,
const std::vector< std::string > &  v_str_expected_doms 
)
staticprotected

Generates the Exception message.

Parameters
ctc_namethe contractor class name
v_domainsthe domains provided by the user
v_str_expected_domsthe allowed definitions for the contractor
Returns
exception message

◆ exception_message() [2/2]

static std::string codac::DomainsTypeException::exception_message ( const std::string &  ctc_name,
const std::vector< Domain *> &  v_ptr_domains,
const std::vector< std::string > &  v_str_expected_doms 
)
staticprotected

Generates the Exception message.

Parameters
ctc_namethe contractor class name
v_ptr_domainspointers to the domains provided by the user
v_str_expected_domsthe allowed definitions for the contractor
Returns
exception message

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