mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
25 lines
428 B
C
25 lines
428 B
C
|
|
/*
|
||
|
|
* BadMessageException.h
|
||
|
|
*
|
||
|
|
* Created on: Sep 16, 2012
|
||
|
|
* Author: Mitchell Wills
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef BADMESSAGEEXCEPTION_H_
|
||
|
|
#define BADMESSAGEEXCEPTION_H_
|
||
|
|
|
||
|
|
#include <exception>
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
class BadMessageException : public std::exception
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
BadMessageException(const char* message);
|
||
|
|
~BadMessageException() throw ();
|
||
|
|
const char* what();
|
||
|
|
private:
|
||
|
|
std::string message;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif /* BADMESSAGEEXCEPTION_H_ */
|