codac
codac_DomainsTypeException.h
Go to the documentation of this file.
1 
12 #ifndef __CODAC_DOMAINSTYPEEXCEPTION_H__
13 #define __CODAC_DOMAINSTYPEEXCEPTION_H__
14 
15 #include <vector>
16 #include <string>
17 #include "codac_Exception.h"
18 #include "codac_Domain.h"
19 
20 namespace codac
21 {
28  {
29  public:
30 
38  DomainsTypeException(const std::string& ctc_name,
39  const std::vector<Domain*>& v_ptr_domains,
40  const std::vector<std::string>& v_str_expected_doms);
41 
49  DomainsTypeException(const std::string& ctc_name,
50  const std::vector<Domain>& v_domains,
51  const std::vector<std::string>& v_str_expected_doms);
52 
53  protected:
54 
63  static std::string exception_message(const std::string& ctc_name,
64  const std::vector<Domain>& v_domains, const std::vector<std::string>& v_str_expected_doms);
65 
74  static std::string exception_message(const std::string& ctc_name,
75  const std::vector<Domain*>& v_ptr_domains, const std::vector<std::string>& v_str_expected_doms);
76  };
77 }
78 
79 #endif
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition: codac_capd_helpers.h:9
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.
Root class of all exceptions raised by Codac.
Definition: codac_Exception.h:36
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.
Exception raised if the domains connected to a contractor in a CN are not consistent with the contrac...
Definition: codac_DomainsTypeException.h:27