This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/preview/PreviewModelException.h

20 lines
411 B
C++

#ifndef PREVIEWMODELEXCEPTION_H_
#define PREVIEWMODELEXCEPTION_H_
#include <string>
#include <exception>
using namespace std;
struct PreviewModelException: public exception {
string message;
public:
PreviewModelException(string message_): message(message_) {}
const char * what() const throw()
{
return message.c_str();
}
~PreviewModelException() throw() {};
};
#endif /* PREVIEWMODELEXCEPTION_H_ */