file /home/anarendran/Documents/temp/rivet/include/Rivet/Tools/Exceptions.hh
/home/anarendran/Documents/temp/rivet/include/Rivet/Tools/Exceptions.hh
Namespaces
Name |
---|
Rivet |
Classes
Name | |
---|---|
struct | Rivet::Error Generic runtime Rivet error. |
struct | Rivet::RangeError Error for e.g. use of invalid bin ranges. |
struct | Rivet::LogicError Error specialisation for places where alg logic has failed. |
struct | Rivet::PidError Error specialisation for failures relating to particle ID codes. |
struct | Rivet::InfoError Error specialisation for failures relating to analysis info. |
struct | Rivet::WeightError Errors relating to event/bin weights. |
struct | Rivet::UserError Error specialisation for where the problem is between the chair and the computer. |
struct | Rivet::LookupError Error relating to looking up analysis objects in the register. |
struct | Rivet::IOError Error for I/O failures. |
struct | Rivet::ReadError Error for read failures. |
struct | Rivet::WriteError Error for write failures. |
Source code
#ifndef RIVET_EXCEPTIONS_HH
#define RIVET_EXCEPTIONS_HH
#include <string>
#include <exception>
#include <stdexcept>
namespace Rivet {
struct Error : public std::runtime_error {
Error(const std::string& what) : std::runtime_error(what) {}
};
typedef Error Exception;
struct RangeError : public Error {
RangeError(const std::string& what) : Error(what) {}
};
struct LogicError : public Error {
LogicError(const std::string& what) : Error(what) {}
};
struct PidError : public Error {
PidError(const std::string& what) : Error(what) {}
};
struct InfoError : public Error {
InfoError(const std::string& what) : Error(what) {}
};
struct WeightError : public Error {
WeightError(const std::string& what) : Error(what) {}
};
struct UserError : public Error {
UserError(const std::string& what) : Error(what) {}
};
struct LookupError : public Error {
LookupError(const std::string& what) : Error(what) {}
};
struct IOError : public Error {
IOError(const std::string& what) : Error(what) {}
};
struct ReadError : public IOError {
ReadError(const std::string& what) : IOError(what) {}
};
struct WriteError : public IOError {
WriteError(const std::string& what) : IOError(what) {}
};
}
#endif
Updated on 2022-08-07 at 20:17:18 +0100