BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
facilities::WrongType Class Reference

Exception class used when converting from string to numeric type. More...

#include <Util.h>

Public Member Functions

 WrongType (const std::string &toConvert, const std::string &typeName)
 
std::string getMsg ()
 
 WrongType (const std::string &toConvert, const std::string &typeName)
 
std::string getMsg ()
 

Detailed Description

Exception class used when converting from string to numeric type.

Definition at line 29 of file Calibration/facilities/facilities-00-00-04/facilities/Util.h.

Constructor & Destructor Documentation

◆ WrongType() [1/2]

facilities::WrongType::WrongType ( const std::string &  toConvert,
const std::string &  typeName 
)
inline

Definition at line 31 of file Calibration/facilities/facilities-00-00-04/facilities/Util.h.

31 :
32 m_toConvert(toConvert), m_typeName(typeName) {}

◆ WrongType() [2/2]

facilities::WrongType::WrongType ( const std::string &  toConvert,
const std::string &  typeName 
)
inline

Definition at line 31 of file Event/RootCnvSvc/RootCnvSvc-03-01-03/RootCnvSvc/Util.h.

31 :
32 m_toConvert(toConvert), m_typeName(typeName) {}

Member Function Documentation

◆ getMsg() [1/2]

std::string facilities::WrongType::getMsg ( )
inline

◆ getMsg() [2/2]

std::string facilities::WrongType::getMsg ( )
inline

Definition at line 33 of file Event/RootCnvSvc/RootCnvSvc-03-01-03/RootCnvSvc/Util.h.

33 {
34 std::string msg =
35 "facilities::WrongType. Cannot convert '" + m_toConvert + "' to type "
36 + m_typeName;
37 return msg;
38 }

The documentation for this class was generated from the following files: