MED fichier: Fichier source de MEDerreur.hxx

MED fichier

- Documentation MED
- Guides d'utilisation
- Guides de référence

MEDerreur.hxx
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2 *
3 * COPYRIGHT (C) 1999 - 2019 EDF R&D, CEA/DEN
4 * MED is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * MED is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with MED. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18
19 #ifndef MED_ERREUR_HXX
20 #define MED_ERREUR_HXX
21
22 #include <exception>
23 #include <string>
24
25 struct MEDerreur : public std::exception {
26
27 MEDerreur( const char *fichier="",
28 const unsigned int ligneNo=0,
29 const char * message="",
30 const char * arg="" );
31
32 virtual const char* what( void ) const throw ();
33 //opérateur de recopie
34
35 virtual ~MEDerreur(void) throw();
36
37 protected:
38
39 std::string _what;
40 };
41
42 #endif
MEDerreur
Definition: MEDerreur.hxx:25
MEDerreur::_what
std::string _what
Definition: MEDerreur.hxx:39
MEDerreur::MEDerreur
MEDerreur(const char *fichier="", const unsigned int ligneNo=0, const char *message="", const char *arg="")
MEDerreur::~MEDerreur
virtual ~MEDerreur(void)
MEDerreur::what
virtual const char * what(void) const