/usr/include/root/Math/GenVector/GenVector_exception.h is in libroot-math-genvector-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | // @(#)root/mathcore:$Id$
// Authors: W. Brown, M. Fischler, L. Moneta 2005
#ifndef ROOT_Math_GenVector_GenVector_exception
#define ROOT_Math_GenVector_GenVector_exception 1
// ======================================================================
// $Id $
//
// Define the exception type used throughout this package.
// ======================================================================
// ----------------------------------------------------------------------
// Prolog
#include <stdexcept>
#include <string>
namespace ROOT {
namespace Math {
class GenVector_exception;
void Throw(GenVector_exception & e);
namespace GenVector {
void Throw(const char *);
}
// ----------------------------------------------------------------------
// GenVector_exception class definition
class GenVector_exception
: public std::runtime_error
{
public:
GenVector_exception( const std::string & s )
: runtime_error(s)
{ }
// Compiler-generated copy ctor, copy assignment, dtor are fine
// Inherited what() from runtime_error is fine
static bool EnableThrow() { bool tmp = fgOn; fgOn = true; return tmp; }
static bool DisableThrow() { bool tmp = fgOn; fgOn = false; return tmp; }
private:
friend void Throw(GenVector_exception &);
friend void GenVector::Throw(const char *);
static bool fgOn;
}; // GenVector_exception
// ----------------------------------------------------------------------
// Epilog
/// throw explicity GenVector exceptions
void Throw(GenVector_exception & e);
namespace GenVector {
/// function throwing exception, by creating internally a GenVector_exception only when needed
void Throw(const char *);
}
} // namespace Math
} // namespace ROOT
#endif // GENVECTOR_EXCEPTION_H
|