libki/include/ki/protocol/exception.h

26 lines
456 B
C
Raw Normal View History

#pragma once
#include <stdexcept>
namespace ki
{
namespace protocol
{
class runtime_error : public std::runtime_error
{
public:
runtime_error(std::string message) : std::runtime_error(message) { }
};
class parse_error : public runtime_error
{
public:
parse_error(std::string message) : runtime_error(message) { }
};
class value_error : public runtime_error
{
public:
value_error(std::string message) : runtime_error(message) { }
};
}
}