2018-06-09 22:30:07 +02:00
|
|
|
#ifndef PASSWORD_FILE_IO_PARSINGEXCEPTION_H
|
|
|
|
#define PASSWORD_FILE_IO_PARSINGEXCEPTION_H
|
2015-04-22 19:06:29 +02:00
|
|
|
|
2016-08-29 15:42:07 +02:00
|
|
|
#include "../global.h"
|
2015-04-22 19:06:29 +02:00
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Io {
|
|
|
|
|
2017-05-01 03:25:30 +02:00
|
|
|
class PASSWORD_FILE_EXPORT ParsingException : public std::runtime_error {
|
2015-04-22 19:06:29 +02:00
|
|
|
public:
|
2018-12-21 17:31:24 +01:00
|
|
|
explicit ParsingException(const std::string &message = std::string()) noexcept;
|
|
|
|
explicit ParsingException(const char *message) noexcept;
|
2015-04-22 19:06:29 +02:00
|
|
|
};
|
2018-12-21 17:31:24 +01:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Constructs a parsing exception.
|
|
|
|
*/
|
|
|
|
inline ParsingException::ParsingException(const std::string &message) noexcept
|
|
|
|
: runtime_error(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Constructs a parsing exception.
|
|
|
|
*/
|
|
|
|
inline ParsingException::ParsingException(const char *message) noexcept
|
|
|
|
: runtime_error(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-03-20 20:11:31 +01:00
|
|
|
} // namespace Io
|
2015-04-22 19:06:29 +02:00
|
|
|
|
2018-06-09 22:30:07 +02:00
|
|
|
#endif // PASSWORD_FILE_IO_PARSINGEXCEPTION_H
|