2013-12-15 18:30:16 -05:00
|
|
|
/*
|
|
|
|
|
* BadMessageException.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: Sep 16, 2012
|
|
|
|
|
* Author: Mitchell Wills
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef BADMESSAGEEXCEPTION_H_
|
|
|
|
|
#define BADMESSAGEEXCEPTION_H_
|
|
|
|
|
|
2015-04-26 19:19:57 -04:00
|
|
|
#include "NTBase.h"
|
2013-12-15 18:30:16 -05:00
|
|
|
#include <exception>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
class BadMessageException : public std::exception
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
BadMessageException(const char* message);
|
2015-06-25 00:51:38 -07:00
|
|
|
~BadMessageException() noexcept;
|
2015-06-19 17:23:54 -07:00
|
|
|
const char* what() const noexcept;
|
2013-12-15 18:30:16 -05:00
|
|
|
private:
|
|
|
|
|
std::string message;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* BADMESSAGEEXCEPTION_H_ */
|