aknlayoutcompiler/src/SaxErrorHandler.cpp
changeset 0 f58d6ec98e88
child 1 b700e12870ca
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/aknlayoutcompiler/src/SaxErrorHandler.cpp	Thu Dec 17 09:14:18 2009 +0200
@@ -0,0 +1,39 @@
+/*
+* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*       Defines the entry point for the console application
+*
+*/
+
+
+//
+// class SAXErrorHandler
+//
+
+#include "SaxErrorHandler.h"
+
+void SAXErrorHandler::warning(const SAX::SAXParseException& exception)
+{
+  std::cerr << "WARNING: " << exception.what() << std::endl;
+} // warning
+
+void SAXErrorHandler::error(const SAX::SAXParseException& exception)
+{
+  std::cerr << "ERROR  : " << exception.what() << std::endl;
+} // error
+
+void SAXErrorHandler::fatalError(const SAX::SAXParseException& exception)
+{
+  std::cerr << "FATAL  : " << exception.what() << std::endl;
+} // fatalError