Skip to content
Snippets Groups Projects
Commit 43075712 authored by Steven Murray's avatar Steven Murray
Browse files

Added context and embedBacktrace params to CommandLineNotParsed constructor

parent fd97ad4a
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment