DAS  3.0
Das Analysis System
BadInput

Description

Generic exception for ill-defined input (before the event loop).

#include <exceptions.h>

+ Inheritance diagram for BadInput:
+ Collaboration diagram for BadInput:

Public Member Functions

 BadInput (const char *error, std::function< void()> helper)
 
 BadInput (const char *error, const Darwin::Tools::UserInfo &userinfo)
 
 BadInput (const char *error, const TObject &object)
 
 BadInput (const char *error, const TDirectory &dir)
 
template<typename T >
 BadInput (const char *error, const std::shared_ptr< T > &ptr)
 
template<typename T >
 BadInput (const char *error, const std::unique_ptr< T > &ptr)
 
 BadInput (const char *error, std::function< void()> helper)
 
 BadInput (const char *error, const Darwin::Tools::UserInfo &userinfo)
 
 BadInput (const char *error, const TObject &object)
 
 BadInput (const char *error, const TDirectory &dir)
 
template<typename T >
 BadInput (const char *error, const std::shared_ptr< T > &ptr)
 
template<typename T >
 BadInput (const char *error, const std::unique_ptr< T > &ptr)
 

Constructor & Destructor Documentation

◆ BadInput() [1/12]

BadInput ( const char *  error,
std::function< void()>  helper 
)
inline

Constructor for bad meta information.

Parameters
errorerror message
helperhelper
74  : invalid_argument(
75  intercept_printf([error,&helper]() {
76  printf("%s%s%s\n", bold, error, normal);
77  helper();
78  })
79  )
80  { }

◆ BadInput() [2/12]

BadInput ( const char *  error,
const Darwin::Tools::UserInfo userinfo 
)
inline

Constructor for bad meta information.

Parameters
errorerror message
userinfoaccess to userinfo
86  : BadInput(error, [&userinfo](){ userinfo.ls(); }) { }

◆ BadInput() [3/12]

BadInput ( const char *  error,
const TObject &  object 
)
inline

Constructor for TObject (in particular, TChain and TH1)

Parameters
objectaccess to ROOT object
92  : BadInput(error, [&object](){ object.Print("all"); }) { }

◆ BadInput() [4/12]

BadInput ( const char *  error,
const TDirectory &  dir 
)
inline

Constructor for bad TDirectory or TFile

Parameters
diraccess to TFile or TDirectory
98  : BadInput(error, [&dir](){ dir.ls(); }) { }

◆ BadInput() [5/12]

BadInput ( const char *  error,
const std::shared_ptr< T > &  ptr 
)
inline

Specialisation for shared pointers.

104  : BadInput(error, *ptr) { }

◆ BadInput() [6/12]

BadInput ( const char *  error,
const std::unique_ptr< T > &  ptr 
)
inline

Specialisation for unique pointers.

110  : BadInput(error, *ptr) { }

◆ BadInput() [7/12]

BadInput ( const char *  error,
std::function< void()>  helper 
)
inline

Constructor for bad meta information.

Parameters
errorerror message
helperhelper
74  : invalid_argument(
75  intercept_printf([error,&helper]() {
76  printf("%s%s%s\n", bold, error, normal);
77  helper();
78  })
79  )
80  { }

◆ BadInput() [8/12]

BadInput ( const char *  error,
const Darwin::Tools::UserInfo userinfo 
)
inline

Constructor for bad meta information.

Parameters
errorerror message
userinfoaccess to userinfo
86  : BadInput(error, [&userinfo](){ userinfo.ls(); }) { }

◆ BadInput() [9/12]

BadInput ( const char *  error,
const TObject &  object 
)
inline

Constructor for TObject (in particular, TChain and TH1)

Parameters
objectaccess to ROOT object
92  : BadInput(error, [&object](){ object.Print("all"); }) { }

◆ BadInput() [10/12]

BadInput ( const char *  error,
const TDirectory &  dir 
)
inline

Constructor for bad TDirectory or TFile

Parameters
diraccess to TFile or TDirectory
98  : BadInput(error, [&dir](){ dir.ls(); }) { }

◆ BadInput() [11/12]

BadInput ( const char *  error,
const std::shared_ptr< T > &  ptr 
)
inline

Specialisation for shared pointers.

104  : BadInput(error, *ptr) { }

◆ BadInput() [12/12]

BadInput ( const char *  error,
const std::unique_ptr< T > &  ptr 
)
inline

Specialisation for unique pointers.

110  : BadInput(error, *ptr) { }

The documentation for this struct was generated from the following file:
Darwin::Exceptions::BadInput::BadInput
BadInput(const char *error, std::function< void()> helper)
Constructor for bad meta information.
Definition: exceptions.h:72
normal
static const char * normal
Definition: colours.h:8
Darwin::Exceptions::intercept_printf
std::string intercept_printf(std::function< void()> const lambda=[]() { printf(__func__);})
Definition: exceptions.h:25
Darwin::Tools::UserInfo::ls
void ls() const
Prints the content of the TList
Definition: UserInfo.h:263
Step::bold
static const char * bold
Definition: Step.h:35