Handling errors due to objects not found in the CCDB.
More...
#include <CalibDB.h>
Inherits std::exception.
|
| | ObjectNotFoundException (const std::string_view server, const std::string_view path, const std::map< std::string, std::string > &metadata, ULong_t timestamp) |
| | Constructor with query parameters.
|
| |
| | ~ObjectNotFoundException () noexcept final=default |
| | destructor
|
| |
| const char * | what () const noexcept final |
| | Creating error message with relevant query paramters.
|
| |
| const std::map< std::string, std::string > | getMetaData () const |
| | Accessor to meta data.
|
| |
| const std::string & | getServer () const |
| | Accessor to URL of the CCDB server.
|
| |
| const std::string & | getPath () const |
| | Accessor to the CCDB path in the query.
|
| |
| ULong_t | getTimestamp () const |
| | Accessor to timestamp used in the query.
|
| |
Handling errors due to objects not found in the CCDB.
Objects cannot be found due to
- Not existing on server
- Incorrect path
- Wrong timestamp
- Meta data not set
Definition at line 81 of file CalibDB.h.
◆ ObjectNotFoundException()
| o2::emcal::CalibDB::ObjectNotFoundException::ObjectNotFoundException |
( |
const std::string_view |
server, |
|
|
const std::string_view |
path, |
|
|
const std::map< std::string, std::string > & |
metadata, |
|
|
ULong_t |
timestamp |
|
) |
| |
|
inline |
Constructor with query parameters.
- Parameters
-
| server | URL of the CCDB server |
| path | CCDB path |
| metadata | Meta data used in the query |
| timestamp | Timestamp used in the query |
Definition at line 89 of file CalibDB.h.
◆ ~ObjectNotFoundException()
| o2::emcal::CalibDB::ObjectNotFoundException::~ObjectNotFoundException |
( |
| ) |
|
|
finaldefaultnoexcept |
◆ getMetaData()
| const std::map< std::string, std::string > o2::emcal::CalibDB::ObjectNotFoundException::getMetaData |
( |
| ) |
const |
|
inline |
Accessor to meta data.
- Returns
- meta data
Definition at line 110 of file CalibDB.h.
◆ getPath()
| const std::string & o2::emcal::CalibDB::ObjectNotFoundException::getPath |
( |
| ) |
const |
|
inline |
Accessor to the CCDB path in the query.
- Returns
- CCDB path in the query
Definition at line 118 of file CalibDB.h.
◆ getServer()
| const std::string & o2::emcal::CalibDB::ObjectNotFoundException::getServer |
( |
| ) |
const |
|
inline |
Accessor to URL of the CCDB server.
- Returns
- URL of the CCDB server
Definition at line 114 of file CalibDB.h.
◆ getTimestamp()
| ULong_t o2::emcal::CalibDB::ObjectNotFoundException::getTimestamp |
( |
| ) |
const |
|
inline |
Accessor to timestamp used in the query.
- Returns
- Timestamp used in query
Definition at line 122 of file CalibDB.h.
◆ what()
| const char * o2::emcal::CalibDB::ObjectNotFoundException::what |
( |
| ) |
const |
|
inlinefinalnoexcept |
Creating error message with relevant query paramters.
- Returns
- error message
Definition at line 103 of file CalibDB.h.
The documentation for this class was generated from the following file:
- /home/runner/work/AliceO2/AliceO2/Detectors/EMCAL/calib/include/EMCALCalib/CalibDB.h