Wyatt  1.0.1
DataSizeException.h
1 //
2 // Created by Tucker Haydon on 4/26/17.
3 //
4 
5 #pragma once
6 
10 class DataSizeException: public std::exception {
11 
12 public:
17  DataSizeException(int data) : std::exception() {
18  this->data = data;
19  }
20 
25  virtual const char* what() const throw() {
26  std::string msg("Data is too large or small. Data: ");
27  msg += this->data;
28  return msg.c_str();
29  }
30 
31 private:
32  int data;
33 };
virtual const char * what() const
DataSizeException(int data)