1*7b6bd0c4SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*7b6bd0c4SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*7b6bd0c4SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*7b6bd0c4SAndrew Rist * distributed with this work for additional information 6*7b6bd0c4SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*7b6bd0c4SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*7b6bd0c4SAndrew Rist * "License"); you may not use this file except in compliance 9*7b6bd0c4SAndrew Rist * with the License. You may obtain a copy of the License at 10*7b6bd0c4SAndrew Rist * 11*7b6bd0c4SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*7b6bd0c4SAndrew Rist * 13*7b6bd0c4SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*7b6bd0c4SAndrew Rist * software distributed under the License is distributed on an 15*7b6bd0c4SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7b6bd0c4SAndrew Rist * KIND, either express or implied. See the License for the 17*7b6bd0c4SAndrew Rist * specific language governing permissions and limitations 18*7b6bd0c4SAndrew Rist * under the License. 19*7b6bd0c4SAndrew Rist * 20*7b6bd0c4SAndrew Rist *************************************************************/ 21*7b6bd0c4SAndrew Rist 22*7b6bd0c4SAndrew Rist 23cdf0e10cSrcweir #ifndef _XMLSEARCH_EXCEP_XMLSEARCHEXCEPTIONS_HXX_ 24cdf0e10cSrcweir #define _XMLSEARCH_EXCEP_XMLSEARCHEXCEPTIONS_HXX_ 25cdf0e10cSrcweir 26cdf0e10cSrcweir #include <rtl/ustring.hxx> 27cdf0e10cSrcweir 28cdf0e10cSrcweir 29cdf0e10cSrcweir namespace xmlsearch { 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace excep { 32cdf0e10cSrcweir 33cdf0e10cSrcweir 34cdf0e10cSrcweir class XmlSearchException 35cdf0e10cSrcweir { 36cdf0e10cSrcweir public: 37cdf0e10cSrcweir XmlSearchException(const rtl::OUString & message)38cdf0e10cSrcweir XmlSearchException( const rtl::OUString& message ) 39cdf0e10cSrcweir : _message( message ) 40cdf0e10cSrcweir { 41cdf0e10cSrcweir } 42cdf0e10cSrcweir getMessage() const43cdf0e10cSrcweir rtl::OUString getMessage() const 44cdf0e10cSrcweir { 45cdf0e10cSrcweir return _message; 46cdf0e10cSrcweir } 47cdf0e10cSrcweir 48cdf0e10cSrcweir 49cdf0e10cSrcweir private: 50cdf0e10cSrcweir 51cdf0e10cSrcweir rtl::OUString _message; 52cdf0e10cSrcweir }; 53cdf0e10cSrcweir 54cdf0e10cSrcweir 55cdf0e10cSrcweir class IOException 56cdf0e10cSrcweir : public virtual XmlSearchException 57cdf0e10cSrcweir { 58cdf0e10cSrcweir public: 59cdf0e10cSrcweir IOException(const rtl::OUString & message)60cdf0e10cSrcweir IOException( const rtl::OUString& message ) 61cdf0e10cSrcweir : XmlSearchException( message ) 62cdf0e10cSrcweir { 63cdf0e10cSrcweir } 64cdf0e10cSrcweir }; 65cdf0e10cSrcweir 66cdf0e10cSrcweir 67cdf0e10cSrcweir class NoFactoryException 68cdf0e10cSrcweir : public virtual XmlSearchException 69cdf0e10cSrcweir { 70cdf0e10cSrcweir public: NoFactoryException(const rtl::OUString & message)71cdf0e10cSrcweir NoFactoryException( const rtl::OUString& message ) 72cdf0e10cSrcweir : XmlSearchException( message ) 73cdf0e10cSrcweir { 74cdf0e10cSrcweir } 75cdf0e10cSrcweir }; 76cdf0e10cSrcweir 77cdf0e10cSrcweir 78cdf0e10cSrcweir class NoSuchBlock 79cdf0e10cSrcweir : public virtual XmlSearchException 80cdf0e10cSrcweir { 81cdf0e10cSrcweir public: NoSuchBlock(const rtl::OUString & message)82cdf0e10cSrcweir NoSuchBlock( const rtl::OUString& message ) 83cdf0e10cSrcweir : XmlSearchException( message ) 84cdf0e10cSrcweir { 85cdf0e10cSrcweir } 86cdf0e10cSrcweir }; 87cdf0e10cSrcweir 88cdf0e10cSrcweir 89cdf0e10cSrcweir class IllegalIndexException 90cdf0e10cSrcweir : public virtual XmlSearchException 91cdf0e10cSrcweir { 92cdf0e10cSrcweir public: IllegalIndexException(const rtl::OUString & message)93cdf0e10cSrcweir IllegalIndexException( const rtl::OUString& message ) 94cdf0e10cSrcweir : XmlSearchException( message ) 95cdf0e10cSrcweir { 96cdf0e10cSrcweir } 97cdf0e10cSrcweir }; 98cdf0e10cSrcweir 99cdf0e10cSrcweir } 100cdf0e10cSrcweir } 101cdf0e10cSrcweir 102cdf0e10cSrcweir 103cdf0e10cSrcweir #endif 104