# HG changeset patch # User František Kučera # Date 1534185521 -7200 # Node ID 88e1bb50d00c725ec5d43bb4f92cd8769fb03665 # Parent 117e4145fff8d8f55091a370941c2cd756edc8ff move RelpipeCLIException.h from relpipe-in-cli to relpipe-lib-cli diff -r 117e4145fff8 -r 88e1bb50d00c include/relpipe/cli/RelpipeCLIException.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/relpipe/cli/RelpipeCLIException.h Mon Aug 13 20:38:41 2018 +0200 @@ -0,0 +1,36 @@ +#pragma once + +#include + +#include + +using namespace std; + +namespace relpipe { +namespace cli { + +/** + * TODO: move to relpipe-lib-cli (a common header-only library) + */ +class RelpipeCLIException { +private: + wstring message; + int exitCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; +public: + + RelpipeCLIException(wstring message, int exitCode) : + message(message), exitCode(exitCode) { + } + + wstring getMessge() { + return message; + } + + int getExitCode() { + return exitCode; + } + +}; + +} +} \ No newline at end of file diff -r 117e4145fff8 -r 88e1bb50d00c nbproject/configurations.xml --- a/nbproject/configurations.xml Sun Aug 12 13:00:24 2018 +0200 +++ b/nbproject/configurations.xml Mon Aug 13 20:38:41 2018 +0200 @@ -5,6 +5,7 @@ displayName="Header Files" projectFiles="true"> include/relpipe/cli/CLI.h + include/relpipe/cli/RelpipeCLIException.h + + @@ -66,6 +72,11 @@ + +