mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
DCVonlyInGaussianCaseException.h
1 /***************************************************************************
2  SRC/mixmod/Utilities/exceptions/DCVonlyInGaussianCaseException.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
30 #ifndef XEM_DCVONLYINGAUSSIANCASEEXCEPTION_H
31 #define XEM_DCVONLYINGAUSSIANCASEEXCEPTION_H
32 
33 #include "mixmod/Utilities/exceptions/Exception.h"
34 
35 namespace XEM {
36 
38 
39 public:
40 
41  Exception * clone() throw ();
42  DCVonlyInGaussianCaseException(std::string, int, DCVonlyInGaussianCaseError) throw ();
43  DCVonlyInGaussianCaseException(DCVonlyInGaussianCaseError) throw ();
44  virtual const char* what() const throw ();
45  virtual bool operator==(const Exception&) const throw ();
46  virtual void run(std::ostream & flux = std::cout) const throw ();
47 
48  virtual ~DCVonlyInGaussianCaseException() throw () {
49  }
50 
51  static std::map<DCVonlyInGaussianCaseError, const char*> create_map()
52  {
53  std::map<DCVonlyInGaussianCaseError, const char*> m;
54  m.insert(std::make_pair(allCVCriterionErrorForAnEstimationInDCVContext, "All CV Criterion have error for an estimation in DCV context"));
55  m.insert(std::make_pair(NbDCVBlocksTooSmall, "Number of DCV Blocks is too small (or NbSample is too small)"));
56 
57  return m;
58  }
59  static std::map<DCVonlyInGaussianCaseError, const char*> mapErrorMsg;
60 
61 protected:
62 
63  DCVonlyInGaussianCaseError _errorType;
64 };
65 
66 }
67 
68 #endif /* XEMDCVONLYINGAUSSIANCASEEXCEPTION_H_ */
Definition: DCVonlyInGaussianCaseException.h:37
Definition: Exception.h:42
virtual void run(std::ostream &flux=std::cout) const
Definition: DCVonlyInGaussianCaseException.cpp:60
virtual bool operator==(const Exception &) const
Definition: DCVonlyInGaussianCaseException.cpp:54
virtual const char * what() const
Definition: DCVonlyInGaussianCaseException.cpp:50