Exceptions.hh
#ifndef RIVET_EXCEPTIONS_HH
#define RIVET_EXCEPTIONS_HH
#include <string>
#include <exception>
#include <stdexcept>
namespace Rivet {
class Error : public std::runtime_error {
public:
Error(const std::string& what) : std::runtime_error(what) {}
};
typedef Error Exception;
class RangeError : public Error {
public:
RangeError(const std::string& what) : Error(what) {}
};
class LogicError : public Error {
public:
LogicError(const std::string& what) : Error(what) {}
};
class PidError : public Error {
public:
PidError(const std::string& what) : Error(what) {}
};
class InfoError : public Error {
public:
InfoError(const std::string& what) : Error(what) {}
};
class WeightError : public Error {
public:
WeightError(const std::string& what) : Error(what) {}
};
class UserError : public Error {
public:
UserError(const std::string& what) : Error(what) {}
};
}
#endif
Rivet::PidError
Error specialisation for failures relating to particle ID codes.
Definition: Exceptions.hh:37
Rivet::RangeError
Error for e.g. use of invalid bin ranges.
Definition: Exceptions.hh:23
Rivet::UserError
Error specialisation for where the problem is between the chair and computer.
Definition: Exceptions.hh:61
Rivet::InfoError
Error specialisation for failures relating to analysis info.
Definition: Exceptions.hh:44
Rivet::WeightError
Errors relating to event/bin weights.
Definition: Exceptions.hh:54
Rivet::Exception
Error Exception
Rivet::Exception is a synonym for Rivet::Error.
Definition: Exceptions.hh:19
Rivet::LogicError
Error specialisation for places where alg logic has failed.
Definition: Exceptions.hh:30
Rivet::Error
Generic runtime Rivet error.
Definition: Exceptions.hh:12