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
structRivet::Error
Generic runtime Rivet error.
structRivet::RangeError
Error for e.g. use of invalid bin ranges.
structRivet::LogicError
Error specialisation for places where alg logic has failed.
structRivet::PidError
Error specialisation for failures relating to particle ID codes.
structRivet::InfoError
Error specialisation for failures relating to analysis info.
structRivet::WeightError
Errors relating to event/bin weights.
structRivet::UserError
Error specialisation for where the problem is between the chair and the computer.
structRivet::LookupError
Error relating to looking up analysis objects in the register.
structRivet::IOError
Error for I/O failures.
structRivet::ReadError
Error for read failures.
structRivet::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