mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
See https://usfirst.collab.net/sf/tracker/do/viewArtifact/projects.wpilib/tracker.4_defects/artf4148 Change-Id: I47b0d5a91fd49e47e2c7348b0705e998ec815682
24 lines
482 B
C++
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_ */
|