Files
yaml-cpp/exceptions.h
T

22 lines
530 B
C++
Raw Normal View History

2008-06-26 19:30:11 +00:00
#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-06-26 19:30:11 +00:00
// representation exceptions
class InvalidScalar: public RepresentationException {};
class BadDereference: public RepresentationException {};
2008-06-26 19:30:11 +00:00
}