Commit 8cdf658d authored by Steven Murray's avatar Steven Murray
Browse files

Added context and embedBacktrace params to CommandLineNotParsed constructor

parent 083db8da
......@@ -18,10 +18,15 @@
#include "common/exception/CommandLineNotParsed.hpp"
namespace cta {
namespace exception {
// -----------------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------------
cta::exception::CommandLineNotParsed::CommandLineNotParsed():
cta::exception::Exception() {
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
CommandLineNotParsed::CommandLineNotParsed(const std::string &context, const bool embedBacktrace):
Exception(context, embedBacktrace) {
}
} // namespace exception
} // namespace cta
......@@ -22,19 +22,24 @@
namespace cta { namespace exception {
/**
* CommandLineNotParsed.
*/
class CommandLineNotParsed : public cta::exception::Exception {
public:
/**
* Constructor
*/
CommandLineNotParsed();
/**
* CommandLineNotParsed.
*/
class CommandLineNotParsed : public cta::exception::Exception {
public:
/**
* Constructor.
*
* @param context optional context string added to the message
* at initialisation time.
* @param embedBacktrace whether to embed a backtrace of where the
* exception was throw in the message
*/
CommandLineNotParsed(const std::string &context = "", const bool embedBacktrace = true);
}; // class CommandLineNotParsed
}; // class CommandLineNotParsed
} } // namespace cta exception
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