Files
allwpilib/networktables/cpp/include/networktables2/util/IllegalStateException.h
2015-06-24 15:20:44 -07:00

24 lines
482 B
C++

/*
* IllegalStateException.h
*
* Created on: Sep 16, 2012
* Author: Mitchell Wills
*/
#ifndef ILLEGALSTATEEXCEPTION_H_
#define ILLEGALSTATEEXCEPTION_H_
#include <exception>
#include <string>
class IllegalStateException : public std::exception{
public:
IllegalStateException(const char* message);
const char* what() const noexcept {return message.c_str();};
~IllegalStateException() throw ();
private:
std::string message;
};
#endif /* ILLEGALSTATEEXCEPTION_H_ */