LCOV - code coverage report
Current view: top level - include/xapian - errordispatch.h (source / functions) Hit Total Coverage
Test: Test Coverage for xapian-core 7822d31adece Lines: 5 22 22.7 %
Date: 2019-05-23 11:15:29 Functions: 0 0 -
Branches: 5 44 11.4 %

           Branch data     Line data    Source code
       1                 :            : /* Warning: This file is generated by ./generate-exceptions - do not modify directly! */
       2                 :            : /* Copyright (C) 2003,2004,2006,2007,2008,2009,2011,2015 Olly Betts
       3                 :            :  * Copyright (C) 2007 Richard Boulton
       4                 :            :  *
       5                 :            :  * This program is free software; you can redistribute it and/or
       6                 :            :  * modify it under the terms of the GNU General Public License as
       7                 :            :  * published by the Free Software Foundation; either version 2 of the
       8                 :            :  * License, or (at your option) any later version.
       9                 :            :  *
      10                 :            :  * This program 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
      13                 :            :  * GNU General Public License for more details.
      14                 :            :  *
      15                 :            :  * You should have received a copy of the GNU General Public License
      16                 :            :  * along with this program; if not, write to the Free Software
      17                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
      18                 :            :  */
      19                 :            : 
      20                 :            : /* Note that this file isn't an external header - it's located in
      21                 :            :  * include/xapian in the source tree because it's generated so this
      22                 :            :  * is the simplest way to make inclusion work in a VPATH build.
      23                 :            :  */
      24                 :            : 
      25                 :            : // DOXYGEN gets confused by this header-with-code.
      26                 :            : #ifndef DOXYGEN
      27         [ #  # ]:          0 : case '\000': throw Xapian::AssertionError(msg, context, error_string);
      28         [ +  - ]:         96 : case '\001': throw Xapian::InvalidArgumentError(msg, context, error_string);
      29         [ #  # ]:          0 : case '\002': throw Xapian::InvalidOperationError(msg, context, error_string);
      30         [ #  # ]:          0 : case '\003': throw Xapian::UnimplementedError(msg, context, error_string);
      31         [ +  - ]:          2 : case '\004': throw Xapian::DatabaseError(msg, context, error_string);
      32         [ #  # ]:          0 : case '\005': throw Xapian::DatabaseCorruptError(msg, context, error_string);
      33         [ #  # ]:          0 : case '\006': throw Xapian::DatabaseCreateError(msg, context, error_string);
      34         [ #  # ]:          0 : case '\007': throw Xapian::DatabaseLockError(msg, context, error_string);
      35         [ #  # ]:          0 : case '\010': throw Xapian::DatabaseModifiedError(msg, context, error_string);
      36         [ +  - ]:          1 : case '\011': throw Xapian::DatabaseOpeningError(msg, context, error_string);
      37         [ #  # ]:          0 : case '\012': throw Xapian::DatabaseVersionError(msg, context, error_string);
      38         [ +  - ]:      24078 : case '\013': throw Xapian::DocNotFoundError(msg, context, error_string);
      39         [ #  # ]:          0 : case '\014': throw Xapian::FeatureUnavailableError(msg, context, error_string);
      40         [ #  # ]:          0 : case '\015': throw Xapian::InternalError(msg, context, error_string);
      41         [ #  # ]:          0 : case '\016': throw Xapian::NetworkError(msg, context, error_string);
      42         [ #  # ]:          0 : case '\017': throw Xapian::NetworkTimeoutError(msg, context, error_string);
      43         [ #  # ]:          0 : case '\020': throw Xapian::QueryParserError(msg, context, error_string);
      44         [ #  # ]:          0 : case '\021': throw Xapian::SerialisationError(msg, context, error_string);
      45         [ #  # ]:          0 : case '\022': throw Xapian::RangeError(msg, context, error_string);
      46         [ +  - ]:         20 : case '\023': throw Xapian::WildcardError(msg, context, error_string);
      47         [ #  # ]:          0 : case '\024': throw Xapian::DatabaseNotFoundError(msg, context, error_string);
      48         [ #  # ]:          0 : case '\025': throw Xapian::DatabaseClosedError(msg, context, error_string);
      49                 :            : #endif /* DOXYGEN */

Generated by: LCOV version 1.11