xref: /netbsd-src/external/bsd/elftosb/dist/elftosb2/ElftosbErrors.h (revision 993229b6fea628ff8b1fa09146c80b0cfb2768eb)
1 /*
2  * File:	ConversionController.h
3  *
4  * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5  * See included license file for license details.
6  */
7 #if !defined(_ElftosbErrors_h_)
8 #define _ElftosbErrors_h_
9 
10 #include <string>
11 #include <stdexcept>
12 
13 namespace elftosb
14 {
15 
16 /*!
17  * \brief A semantic error discovered while processing the command file AST.
18  */
19 class semantic_error : public std::runtime_error
20 {
21 public:
semantic_error(const std::string & msg)22 	explicit semantic_error(const std::string & msg)
23 	:	std::runtime_error(msg)
24 	{}
25 };
26 
27 }; // namespace elftosb
28 
29 #endif // _ElftosbErrors_h_
30