summaryrefslogtreecommitdiff
path: root/include/chill_error.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/chill_error.hh')
-rw-r--r--include/chill_error.hh35
1 files changed, 19 insertions, 16 deletions
diff --git a/include/chill_error.hh b/include/chill_error.hh
index 7321e75..20a8362 100644
--- a/include/chill_error.hh
+++ b/include/chill_error.hh
@@ -6,23 +6,26 @@
* \brief CHiLL runtime exceptions
*/
-//! for loop transformation problem
-struct loop_error : public std::runtime_error {
- loop_error(const std::string &msg) : std::runtime_error(msg) {}
-};
+namespace chill {
+ namespace error {
+ //! for loop transformation problem
+ struct loop : public std::runtime_error {
+ loop(const std::string &msg) : std::runtime_error(msg) {}
+ };
-//! for generic compiler intermediate code handling problem
-struct ir_error : public std::runtime_error {
- ir_error(const std::string &msg) : std::runtime_error(msg) {}
-};
+ //! for generic compiler intermediate code handling problem
+ struct ir : public std::runtime_error {
+ ir(const std::string &msg) : std::runtime_error(msg) {}
+ };
-//! for specific for expression to preburger math translation problem
-struct ir_exp_error : public ir_error {
- ir_exp_error(const std::string &msg) : ir_error(msg) {}
-};
-
-struct omega_error : public std::runtime_error {
- omega_error(const std::string &msg) : std::runtime_error(msg) {}
-};
+ //! for specific for expression to preburger math translation problem
+ struct ir_exp : public ir {
+ ir_exp(const std::string &msg) : ir(msg) {}
+ };
+ struct omega : public std::runtime_error {
+ omega(const std::string &msg) : std::runtime_error(msg) {}
+ };
+ }
+}
#endif