The complete source code of IdealIRC
http://www.idealirc.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
597 B
21 lines
597 B
#ifndef SCRIPTEXCEPTION_H
|
|
#define SCRIPTEXCEPTION_H
|
|
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
class ScriptException : public std::exception
|
|
{
|
|
friend class Script;
|
|
std::pair<int,int> m_linecol;
|
|
std::string m_originalMessage;
|
|
std::string m_message;
|
|
void setMessage();
|
|
public:
|
|
explicit ScriptException(const std::string& message);
|
|
ScriptException(std::pair<int,int> linecol, const std::string& message);
|
|
ScriptException(std::pair<int,int> linecol, const ScriptException& ScriptException);
|
|
|
|
const char* what() const noexcept override;
|
|
};
|
|
#endif // SCRIPTEXCEPTION_H
|
|
|