ErrorHandler.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_ERRORHANDLER_HPP)
#define XERCESC_INCLUDE_GUARD_ERRORHANDLER_HPP
#include <xercesc/util/XercesDefs.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class SAXParseException;
class SAX_EXPORT ErrorHandler
{
public:
ErrorHandler()
{
}
virtual ~ErrorHandler()
{
}
virtual void warning(const SAXParseException& exc) = 0;
virtual void error(const SAXParseException& exc) = 0;
virtual void fatalError(const SAXParseException& exc) = 0;
virtual void resetErrors() = 0;
private :
/* Unimplemented constructors and operators */
/* Copy constructor */
ErrorHandler(const ErrorHandler&);
/* Assignment operator */
ErrorHandler& operator=(const ErrorHandler&);
};
XERCES_CPP_NAMESPACE_END
#endif
XercesDefs.hpp
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
SAX_EXPORT
#define SAX_EXPORT
Definition XercesDefs.hpp:164
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
ErrorHandler
Basic interface for SAX error handlers.
Definition ErrorHandler.hpp:61
ErrorHandler::warning
virtual void warning(const SAXParseException &exc)=0
Receive notification of a warning.
ErrorHandler::fatalError
virtual void fatalError(const SAXParseException &exc)=0
Receive notification of a non-recoverable error.
ErrorHandler::resetErrors
virtual void resetErrors()=0
Reset the Error handler object on its reuse.
ErrorHandler::ErrorHandler
ErrorHandler()
Default constructor.
Definition ErrorHandler.hpp:66
ErrorHandler::error
virtual void error(const SAXParseException &exc)=0
Receive notification of a recoverable error.
ErrorHandler::~ErrorHandler
virtual ~ErrorHandler()
Destructor.
Definition ErrorHandler.hpp:71
SAXParseException
Encapsulate an XML parse error or warning.
Definition SAXParseException.hpp:49