author | František Kučera <franta-hg@frantovo.cz> |
Sun, 12 Aug 2018 12:56:18 +0200 | |
branch | v_0 |
changeset 19 | 22f493401ac0 |
parent 14 | cfed80d11caa |
permissions | -rw-r--r-- |
#pragma once #include <string> #include <relpipe/cli/CLI.h> 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; } }; } }