I am having difficulty inheriting from std::runtime_error.
All I have to do is construct an object with a message (I don't know why I cant just use std::runtime_error), and I am being forced to inherit from runtime_error.
Problem is, I really just don't know how. I either get linker errors or my compiler tells me "no default constructor available."
1 2 3 4 5 6
//Declaration in header file
public:
/**
* @post Creates an exception with the message
*/
MazeCreationException(constchar* message);//I am forced to use this signature, and I cannot change it
From here, I am unsure of where to go from here. I can't continue to work on my project until I get this to compile.
Any help anyone can give me would be greatly appreciated.