//$Header: /home/ben/Mapper/include/RCS/error.h,v 6.2 2002/07/09 23:03:15 ben Exp $
#ifndef ERROR_H
#define ERROR_H
// Copyright Benedict Adamson 2002.
// This file is part of Mapper.
// Mapper is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// Mapper is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Mapper; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <string>
#include <dom/DOM_Element.hpp>
namespace error{
class element_error
{
public:
DOM_Element element;
string message;
inline element_error(
const DOM_Element &e,
const string &m
)
:
element( e ),
message( m )
{
};
};
class attribute_error
:
public element_error
{
public:
string attribute;
attribute_error(
const DOM_Element &e,
const string &m,
const string &a
);
};
};
#endif