ESyS-Particle  2.3.2
Error.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __ERROR_H
14 #define __ERROR_H
15 
16 #include <string>
17 #include <iostream>
18 
19 using namespace std;
20 
21 class MError
22 {
23  protected:
24  string message;
25 
26  public:
27  MError(const string& m){message="Error : "+m;};
28  virtual ~MError(){};
29 
30  void print_err() const{cerr << message << endl;};
31 };
32 
33 #endif //__ERROR_H