CombiningParticlePotentialParsing
Last change
on this file since ff4fff9 was 1f3b2a, checked in by Frederik Heber <heber@…>, 12 years ago |
FIX: double inclusion prevention of Parser/exceptions corrected.
|
-
Property mode
set to
100644
|
File size:
919 bytes
|
Rev | Line | |
---|
[d9005c1] | 1 | /*
|
---|
| 2 | * Exceptions.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Mar 12, 2012
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
[1f3b2a] | 8 | #ifndef PARSEREXCEPTIONS_HPP_
|
---|
| 9 | #define PARSEREXCEPTIONS_HPP_
|
---|
[d9005c1] | 10 |
|
---|
| 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 | #include <exception>
|
---|
| 17 | #include <boost/exception/all.hpp>
|
---|
| 18 |
|
---|
| 19 | /** Base type for all exceptions regarding linear algebra.
|
---|
| 20 | *
|
---|
| 21 | */
|
---|
| 22 | struct ParserException : virtual std::exception, virtual boost::exception { };
|
---|
| 23 |
|
---|
| 24 | /** ========================== General error information ================== */
|
---|
| 25 |
|
---|
| 26 | /** Exception information for ParserException: non-present key of an internal map.
|
---|
| 27 | */
|
---|
| 28 | typedef boost::error_info< struct tag_ParserMapLookup, const std::string > ParserMapLookup;
|
---|
| 29 |
|
---|
| 30 | /** ============================ Specific exceptions ====================== */
|
---|
| 31 |
|
---|
| 32 | /** Exception thrown when a lookup for an internal map fails.
|
---|
| 33 | */
|
---|
| 34 | struct IllegalParserKeyException : virtual ParserException { };
|
---|
| 35 |
|
---|
[1f3b2a] | 36 | #endif /* PARSEREXCEPTIONS_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.