Program Listing for File parpeException.h

Return to documentation for file (include/parpecommon/parpeException.h)

#ifndef PARPEEXCEPTION_H
#define PARPEEXCEPTION_H

#include <exception>
#include <string>

namespace parpe {

class ParPEException : public std::exception {
  public:
    explicit ParPEException(const char *message);

    explicit ParPEException(std::string message);

    ~ParPEException() throw() override = default;

    const char *what() const noexcept override;

  private:
    std::string message;
};

} // namespace parpe
#endif // PARPEEXCEPTION_H