/usr/include/Rivet/Exceptions.hh is in librivet-dev 1.8.3-1.1.
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 | #ifndef RIVET_EXCEPTIONS_HH
#define RIVET_EXCEPTIONS_HH
#include <string>
#include <exception>
#include <stdexcept>
namespace Rivet {
/// @brief Generic runtime Rivet error.
class Error : public std::runtime_error {
public:
Error(const std::string& what) : std::runtime_error(what) {}
};
/// @brief Rivet::Exception is a synonym for Rivet::Error.
typedef Error Exception;
/// @brief Error for e.g. use of invalid bin ranges.
class RangeError : public Error {
public:
RangeError(const std::string& what) : Error(what) {}
};
/// @brief Error specialisation for places where alg logic has failed.
class LogicError : public Error {
public:
LogicError(const std::string& what) : Error(what) {}
};
/// @brief Error specialisation for failures relating to particle ID codes.
class PidError : public Error {
public:
PidError(const std::string& what) : Error(what) {}
};
/// @brief Error specialisation for failures relating to analysis info.
class InfoError : public Error {
public:
InfoError(const std::string& what) : Error(what) {}
};
/// @brief Errors relating to event/bin weights
///
/// Arises in computing statistical quantities because e.g. the bin
/// weight is zero or negative.
class WeightError : public Error {
public:
WeightError(const std::string& what) : Error(what) {}
};
/// @brief Error specialisation for where the problem is between the chair and computer.
class UserError : public Error {
public:
UserError(const std::string& what) : Error(what) {}
};
}
#endif
|