RelpipeCLIException.h
author František Kučera <franta-hg@frantovo.cz>
Mon, 13 Aug 2018 20:31:09 +0200
branchv_0
changeset 20 a18b6964d300
parent 19 22f493401ac0
permissions -rw-r--r--
relpipe-lib-writer: move public header files to: include/relpipe/writer/

#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;
	}

};

}
}