This repository has been archived on 2021-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
modetw/include/exceptionhandler.hpp

29 lines
440 B
C++

#ifndef EXCEPTION_HANDLER_HPP
#define EXCEPTION_HANDLER_HPP
#include <string>
#include <iostream>
enum ErrorCode
{
UNKNOWN_ERROR,
CUSTOM_ERROR,
INVALID_PATH_ERROR,
INVALID_ARGUMENT_ERROR,
NO_ARGUMENT_ERROR,
PROCESS_ERROR
};
class ExceptionHandler
{
public:
ExceptionHandler(const ErrorCode, const std::string&);
ExceptionHandler(const ErrorCode);
void GrabError();
private:
ErrorCode _e;
std::string _s;
};
#endif