LCOV - code coverage report
Current view: top level - libreoffice/xmlhelp/source/cxxhelp/inc/excep - XmlSearchExceptions.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-27 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : #ifndef _XMLSEARCH_EXCEP_XMLSEARCHEXCEPTIONS_HXX_
      20             : #define _XMLSEARCH_EXCEP_XMLSEARCHEXCEPTIONS_HXX_
      21             : 
      22             : #include  <rtl/ustring.hxx>
      23             : 
      24             : 
      25             : namespace xmlsearch {
      26             : 
      27             :     namespace excep {
      28             : 
      29             : 
      30           0 :         class XmlSearchException
      31             :         {
      32             :         public:
      33             : 
      34           0 :             XmlSearchException( const OUString& message )
      35           0 :                 : _message( message )
      36             :             {
      37           0 :             }
      38             : 
      39             :             OUString getMessage() const
      40             :             {
      41             :                 return _message;
      42             :             }
      43             : 
      44             : 
      45             :         private:
      46             : 
      47             :             OUString _message;
      48             :         };
      49             : 
      50             : 
      51             :         class IOException
      52             :             : public virtual XmlSearchException
      53             :         {
      54             :         public:
      55             : 
      56             :             IOException( const OUString& message )
      57             :                 : XmlSearchException( message )
      58             :             {
      59             :             }
      60             :         };
      61             : 
      62             : 
      63             :         class NoFactoryException
      64             :             : public virtual XmlSearchException
      65             :         {
      66             :         public:
      67             :             NoFactoryException( const OUString& message )
      68             :                 : XmlSearchException( message )
      69             :             {
      70             :             }
      71             :         };
      72             : 
      73             : 
      74             :         class NoSuchBlock
      75             :             : public virtual XmlSearchException
      76             :         {
      77             :         public:
      78             :             NoSuchBlock( const OUString& message )
      79             :                 : XmlSearchException( message )
      80             :             {
      81             :             }
      82             :         };
      83             : 
      84             : 
      85             :         class IllegalIndexException
      86             :             : public virtual XmlSearchException
      87             :         {
      88             :         public:
      89             :             IllegalIndexException( const OUString& message )
      90             :                 : XmlSearchException( message )
      91             :             {
      92             :             }
      93             :         };
      94             : 
      95             :     }
      96             : }
      97             : 
      98             : 
      99             : #endif
     100             : 
     101             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10