2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADASaxFrameworkLoader.
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
11
#include "COLLADASaxFWLStableHeaders.h"
12
#include "COLLADASaxFWLSaxParserError.h"
14
#include "GeneratedSaxParserParserError.h"
17
namespace COLLADASaxFWL
20
//------------------------------
21
SaxParserError::SaxParserError( const GeneratedSaxParser::ParserError& error )
26
//------------------------------
27
SaxParserError::~SaxParserError()
31
//------------------------------
32
IError::Severity SaxParserError::getSeverity() const
34
bool isCritical = mError.getSeverity()== GeneratedSaxParser::ParserError::SEVERITY_CRITICAL;
35
return isCritical ? IError::SEVERITY_CRITICAL : IError::SEVERITY_ERROR_NONCRITICAL;
38
//------------------------------
39
String SaxParserError::getFullErrorMessage() const
41
return mError.getErrorMessage();
43
} // namespace COLLADASaxFWL