LCOV - code coverage report
Current view: top level - cppthread - exception.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 11 27.3 %
Date: 2021-08-21 09:27:22 Functions: 6 33 18.2 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2013-2021  Made to Order Software Corp.  All Rights Reserved
       2             : //
       3             : // https://snapwebsites.org/project/cppthread
       4             : // contact@m2osw.com
       5             : //
       6             : // This program is free software; you can redistribute it and/or modify
       7             : // it under the terms of the GNU General Public License as published by
       8             : // the Free Software Foundation; either version 2 of the License, or
       9             : // (at your option) any later version.
      10             : //
      11             : // This program is distributed in the hope that it will be useful,
      12             : // but WITHOUT ANY WARRANTY; without even the implied warranty of
      13             : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14             : // GNU General Public License for more details.
      15             : //
      16             : // You should have received a copy of the GNU General Public License along
      17             : // with this program; if not, write to the Free Software Foundation, Inc.,
      18             : // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      19             : #pragma once
      20             : 
      21             : /** \file
      22             :  * \brief Exceptions for the thread environment.
      23             :  *
      24             :  * This file includes the definitions of exceptions used by the Thread
      25             :  * environment.
      26             :  */
      27             : 
      28             : // libexcept lib
      29             : //
      30             : #include    <libexcept/exception.h>
      31             : 
      32             : 
      33             : namespace cppthread
      34             : {
      35             : 
      36             : 
      37             : 
      38           0 : DECLARE_LOGIC_ERROR(cppthread_logic_error);
      39             : 
      40           0 : DECLARE_OUT_OF_RANGE(cppthread_out_of_range);
      41             : 
      42          24 : DECLARE_MAIN_EXCEPTION(cppthread_exception);
      43             : DECLARE_EXCEPTION(cppthread_exception, cppthread_already_exists);
      44           0 : DECLARE_EXCEPTION(cppthread_exception, cppthread_in_use_error);
      45          22 : DECLARE_EXCEPTION(cppthread_exception, cppthread_invalid_error);
      46           0 : DECLARE_EXCEPTION(cppthread_exception, cppthread_mutex_failed_error);
      47           0 : DECLARE_EXCEPTION(cppthread_exception, cppthread_name_mismatch);
      48           2 : DECLARE_EXCEPTION(cppthread_exception, cppthread_not_found);
      49           0 : DECLARE_EXCEPTION(cppthread_exception, cppthread_not_locked_error);
      50             : DECLARE_EXCEPTION(cppthread_exception, cppthread_not_locked_once_error);
      51           0 : DECLARE_EXCEPTION(cppthread_exception, cppthread_not_started);
      52           0 : DECLARE_EXCEPTION(cppthread_exception, cppthread_system_error);
      53             : 
      54             : 
      55             : 
      56             : } // namespace cppthread
      57             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.13