diff options
Diffstat (limited to 'elftosb2/ElftosbErrors.h')
-rw-r--r-- | elftosb2/ElftosbErrors.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/elftosb2/ElftosbErrors.h b/elftosb2/ElftosbErrors.h new file mode 100644 index 0000000..abb546a --- /dev/null +++ b/elftosb2/ElftosbErrors.h @@ -0,0 +1,29 @@ +/* + * File: ConversionController.h + * + * Copyright (c) Freescale Semiconductor, Inc. All rights reserved. + * See included license file for license details. + */ +#if !defined(_ElftosbErrors_h_) +#define _ElftosbErrors_h_ + +#include <string> +#include <stdexcept> + +namespace elftosb +{ + +/*! + * \brief A semantic error discovered while processing the command file AST. + */ +class semantic_error : public std::runtime_error +{ +public: + explicit semantic_error(const std::string & msg) + : std::runtime_error(msg) + {} +}; + +}; // namespace elftosb + +#endif // _ElftosbErrors_h_ |