mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
Error.h
Go to the documentation of this file.
1 /***************************************************************************
2  SRC/mixmod/Utilities/Error.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 ***************************************************************************/
31 #ifndef XEMERROR_H
32 #define XEMERROR_H
33 
34 #include "mixmod/Utilities/Util.h"
35 
36 namespace XEM {
37 
42 class Error {
43 
44 public:
45 
47  Error();
48 
50  Error(Exception & errorType);
51 
53  ~Error();
54 
55  // setter
56  inline void setError(Exception & errorType) {
57  delete _errorType;
58  _errorType = errorType.clone();
59  }
60 
61  // getter
62  inline Exception& getError() const {
63  return *_errorType;
64  }
65 
67  void run();
68 
69 private:
70 
72  Exception * _errorType;
73 };
74 
75 }
76 
77 #endif
Error()
Default constructor.
Definition: Error.cpp:32
Definition: Exception.h:42
Base class for Error(s)
Definition: Error.h:42
~Error()
Destructor.
Definition: Error.cpp:44
Constants definitions, various utilities to describe models, and others...
void run()
Run method (for debug)
Definition: Error.cpp:51