yaml-cpp/exceptions.h

22 lines
530 B
C
Raw Normal View History

#pragma once
#include <exception>
namespace YAML
{
class Exception: public std::exception {};
class ParserException: public Exception {
public:
ParserException(int line_, int column_, const std::string& msg_)
: line(line_), column(column_), msg(msg_) {}
int line, column;
std::string msg;
};
class RepresentationException: public Exception {};
2008-07-02 09:00:32 +04:00
// representation exceptions
class InvalidScalar: public RepresentationException {};
class BadDereference: public RepresentationException {};
}