summaryrefslogtreecommitdiff
path: root/src/Exceptions.h
blob: 4378b8d0872626c01c034d3286ee097cdc61b55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <stdexcept>

class CPUException : std::runtime_error {
public:
  CPUException(std::string what) : std::runtime_error(what), m_What(what) { }
  ~CPUException() = default;

  std::string GetMessage() { return m_What; }
  
private:
  std::string m_What;
};