ESyS-Particle
2.3.4
Error.h
Go to the documentation of this file.
1
// //
3
// Copyright (c) 2003-2017 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.apache.org/licenses/LICENSE-2.0 //
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
MError::MError
MError(const string &m)
Definition:
Error.h:27
MError::print_err
void print_err() const
Definition:
Error.h:30
MError
Definition:
Error.h:22
std
Definition:
Contact.h:101
MError::~MError
virtual ~MError()
Definition:
Error.h:28
MError::message
string message
Definition:
Error.h:24
Foundation
Error.h
Generated by
1.8.20