MURE
Loading...
Searching...
No Matches
SerpentMureException.hxx
Go to the documentation of this file.
1/*
2 This file is part of MURE,
3 Copyright (C) 2007-2021 MURE developers.
4
5 MURE is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 MURE is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with MURE. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef SERPENTMUREEXCEPTION_HXX
20#define SERPENTMUREEXCEPTION_HXX
21#include <iostream>
22#include <exception>
23#include <string>
24#include <cstdio>
25#include <cstdarg>
26
27using namespace std;
28
29namespace Serpent
30{
31
33{
34 protected:
35 static const int BUFFER_SIZE = 1024;
36 string *msg;
37 string *getMsg(const char *format, va_list args);
38 public:
40 MureException(const char *format, ...);
41 MureException(const MureException &other);
42 virtual const char *what() const throw();
43 virtual ~MureException() throw();
44};
45
46}
47
48
49#endif // SERPENTMUREEXCEPTION_HXX
Definition SerpentMureException.hxx:33
string * msg
Definition SerpentMureException.hxx:36
static const int BUFFER_SIZE
Definition SerpentMureException.hxx:35
virtual const char * what() const
Definition SerpentMureException.cxx:53
MureException()
Definition SerpentMureException.cxx:26
string * getMsg(const char *format, va_list args)
Definition SerpentMureException.cxx:36
the namespace use to couple MURE and Serpent
the namespace of the Standard C++

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024