21 _msg =
"Error: There is no music to play, please set one by calling ";
22 _msg +=
"the setMusicPath function from the class.";
23 if (!exceptionDetail.empty()) {
24 _msg +=
"\n(" + exceptionDetail +
")";
26 _buffer = _msg.c_str();
File in charge of informing the user that the content they tried to access was not initialised.
~MusicNotInitialised()
Destroy the Music Not Initialised object.
const char * what() const noexcept
Retrieves the error message.
MusicNotInitialised(const std::string &exceptionDetail="")
Construct a new Music Not Initialised object.