]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - tools/elftosb/elftosb2/ElftosbErrors.h
Added source of Freescale's 'elftosb' tool
[karo-tx-uboot.git] / tools / elftosb / elftosb2 / ElftosbErrors.h
diff --git a/tools/elftosb/elftosb2/ElftosbErrors.h b/tools/elftosb/elftosb2/ElftosbErrors.h
new file mode 100644 (file)
index 0000000..abb546a
--- /dev/null
@@ -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_