Wyatt
1.0.1
Main Page
Classes
Files
File List
include
exceptions
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
};
std
DataSizeException::what
virtual const char * what() const
Definition:
DataSizeException.h:25
DataSizeException
Definition:
DataSizeException.h:10
DataSizeException::DataSizeException
DataSizeException(int data)
Definition:
DataSizeException.h:17
Generated by
1.8.11