1 /* 2 * wsdlpull - A C++ parser for WSDL (Web services description language) 3 * Copyright (C) 2005-2007 Vivek Krishna 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the Free 17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 * 19 * 20 */ 21 #ifndef _SCHEMAPARSEREXCEPTIONH 22 #define _SCHEMAPARSEREXCEPTIONH 23 24 #include <string> 25 #include "xmlpull/wsdlpull_export.h" 26 27 namespace Schema { 28 class WSDLPULL_EXPORT SchemaParserException 29 { 30 public: 31 SchemaParserException(std::string desc); 32 ~SchemaParserException() throw(); 33 std::string description; 34 int line, col; 35 }; 36 37 inline SchemaParserException(std::string desc)38SchemaParserException::SchemaParserException(std::string desc) 39 { 40 description = "Schema Parser Exception : "; 41 description += desc; 42 } 43 inline ~SchemaParserException()44SchemaParserException::~SchemaParserException() throw() 45 { 46 } 47 } 48 #endif /* */ 49