[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Roman Putanowicz |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Wed, 12 Jul 2017 17:41:45 -0400 (EDT) |
branch: devel-rppplx-external-except
commit ce8b88f290df68cd1019a0c9c898089dc53b73a2
Author: rpplx <address@hidden>
Date: Wed Jul 12 21:38:51 2017 +0200
Extended gmm_error class so its constructor accepts an integer errorLevel
argument. The error level allow for more sophisticated management of exception
handling, customizing the handler on the base of error level. This commit do to
introduce any API changes.
---
src/gmm/gmm_except.h | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/gmm/gmm_except.h b/src/gmm/gmm_except.h
index 57bbd92..4dd87f6 100644
--- a/src/gmm/gmm_except.h
+++ b/src/gmm/gmm_except.h
@@ -50,9 +50,15 @@ namespace gmm {
/* GetFEM++ generic errors. */
/* *********************************************************************** */
+ //! std logic_error with error level information
class gmm_error: public std::logic_error {
public:
- gmm_error(const std::string& what_arg): std::logic_error (what_arg) {}
+ gmm_error(const std::string& what_arg, int errorLevel = 1):
+ std::logic_error (what_arg), errorLevel_(errorLevel) {}
+ int errLevel() {return errorLevel_;}
+
+ private:
+ int errorLevel_;
};
#ifdef GETFEM_HAVE_PRETTY_FUNCTION
- [Getfem-commits] [getfem-commits] branch devel-rppplx-external-except created (now 8432620), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject),
Roman Putanowicz <=
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12
- [Getfem-commits] (no subject), Roman Putanowicz, 2017/07/12