codac 1.5.6
Loading...
Searching...
No Matches
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:
Collaboration diagram for codac::DomainsTypeException:

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.
 
 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.
 
- 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.
 
 ~Exception () throw ()
 Exception destructor.
 
virtual const char * what () const throw ()
 Returns the exception message.
 

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.
 
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.
 

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: