1 /*
2     Copyright (c) 2008-2009 NetAllied Systems GmbH
3 
4     This file is part of COLLADASaxFrameworkLoader.
5 
6     Licensed under the MIT Open Source License,
7     for details please see LICENSE file or the website
8     http://www.opensource.org/licenses/mit-license.php
9 */
10 
11 #include "COLLADASaxFWLStableHeaders.h"
12 #include "COLLADASaxFWLSaxParserError.h"
13 
14 #include "GeneratedSaxParserParserError.h"
15 
16 
17 namespace COLLADASaxFWL
18 {
19 
20     //------------------------------
SaxParserError(const GeneratedSaxParser::ParserError & error)21 	SaxParserError::SaxParserError( const GeneratedSaxParser::ParserError& error )
22 		: mError(error)
23 	{
24 	}
25 
26     //------------------------------
~SaxParserError()27 	SaxParserError::~SaxParserError()
28 	{
29 	}
30 
31     //------------------------------
getSeverity() const32 	IError::Severity SaxParserError::getSeverity() const
33 	{
34 		bool isCritical = mError.getSeverity()== GeneratedSaxParser::ParserError::SEVERITY_CRITICAL;
35 		return isCritical ? IError::SEVERITY_CRITICAL : IError::SEVERITY_ERROR_NONCRITICAL;
36 	}
37 
38 	//------------------------------
getFullErrorMessage() const39 	String SaxParserError::getFullErrorMessage() const
40 	{
41 		return  mError.getErrorMessage();
42 	}
43 } // namespace COLLADASaxFWL
44