LCOV - code coverage report
Current view: top level - libs/healpix_base - error_handling.cc (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 0 12 0.0 %
Date: 2024-04-29 14:43:01 Functions: 0 7 0.0 %

          Line data    Source code
       1             : 
       2             : /*
       3             :  *  This file is part of libcxxsupport.
       4             :  *
       5             :  *  libcxxsupport is free software; you can redistribute it and/or modify
       6             :  *  it under the terms of the GNU General Public License as published by
       7             :  *  the Free Software Foundation; either version 2 of the License, or
       8             :  *  (at your option) any later version.
       9             :  *
      10             :  *  libcxxsupport 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 libcxxsupport; if not, write to the Free Software
      17             :  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      18             :  */
      19             : 
      20             : /*
      21             :  *  libcxxsupport is being developed at the Max-Planck-Institut fuer Astrophysik
      22             :  *  and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
      23             :  *  (DLR).
      24             :  */
      25             : 
      26             : /*
      27             :  *  Utilities for error reporting
      28             :  *
      29             :  *  Copyright (C) 2003-2011 Max-Planck-Society
      30             :  *  Author: Martin Reinecke
      31             :  */
      32             : 
      33             : #include "healpix_base/error_handling.h"
      34             : 
      35             : namespace healpix{
      36             : using namespace std;
      37             : 
      38           0 : PlanckError::PlanckError(const string &message) : msg (message) {}
      39           0 : PlanckError::PlanckError(const char *message) : msg (message) {}
      40             : 
      41             : //virtual
      42           0 : PlanckError::~PlanckError() {}
      43             : 
      44           0 : void planck_failure__(const char *file, int line, const char *func,
      45             :   const string &msg)
      46             :   {
      47           0 :   cerr << "Error encountered at " << file << ", line " << line << endl;
      48           0 :   if (func) cerr << "(function " << func << ")" << endl;
      49           0 :   if (msg!="") cerr << endl << msg << endl;
      50             :   cerr << endl;
      51           0 :   }
      52             : 
      53           0 : void planck_failure__(const char *file, int line, const char *func,
      54             :   const char *msg)
      55           0 :   { planck_failure__ (file,line,func,string(msg)); }
      56             : 
      57           0 : void killjob__()
      58           0 :   { throw; }
      59             : } // namespace healpix
      60             : 

Generated by: LCOV version 1.14