Commit 5cef8de7 authored by Nabil Chouika's avatar Nabil Chouika
Browse files

refs#16

In ElemUtils:
- Fix initialization of CustomException.
parent 6e4a5a4e
......@@ -2,7 +2,6 @@
#include <cstdio>
#include <sstream>
//#include <stdexcept>
#include "../../../include/ElementaryUtils/logger/CustomException.h"
#include "../../../include/ElementaryUtils/string_utils/StringUtils.h"
......@@ -49,7 +48,7 @@ std::string FileUtils::read(const std::string & filePath) {
std::stringstream sstring;
sstring << "(FileUtils::read) Could not read file : " << filePath;
// throw std::runtime_error(sstring.str());
throw CustomException("FileUtils", __func__,sstring.str());
throw CustomException("FileUtils", __func__, sstring.str());
}
return str;
......
......@@ -7,7 +7,7 @@ namespace ElemUtils {
CustomException::CustomException(const std::string &className,
const std::string &funcName, const std::string &errorMsg) throw () :
std::runtime_error(m_errorMsg), m_className(className), m_funcName(
std::runtime_error(errorMsg), m_className(className), m_funcName(
funcName), m_errorMsg(errorMsg), m_finalExceptionMsg(
StringUtils::EMPTY) {
m_finalExceptionMsg = Formatter() << "(" << m_className << "::"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment