ATLAS Offline Software
Loading...
Searching...
No Matches
AthStatusCode.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace Athena {
8
9struct StatusCategory : StatusCode::Category {
10 const char* name() const override { return "Athena::Status"; }
11
12 std::string message(StatusCode::code_t code) const override {
13 switch (static_cast<Athena::Status>(code)) {
14 case Status::TIMEOUT:
15 return "Athena::Status::TIMEOUT";
17 return "Athena::Status::MISSING_DATA";
18 default:
19 return StatusCode::default_category().message(code);
20 }
21 }
22};
23
24} // namespace Athena
25
26// Register the category
27STATUSCODE_ENUM_IMPL(Athena::Status, Athena::StatusCategory)
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
Status
Athena specific StatusCode values.
@ TIMEOUT
Timeout during event processing.
@ MISSING_DATA
Missing/corrupted input data.
std::string message(StatusCode::code_t code) const override
const char * name() const override