ATLAS Offline Software
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 
7 namespace Athena {
8 
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
27 STATUSCODE_ENUM_IMPL(Athena::Status, Athena::StatusCategory)
HTXS::Stage0::Category
Category
Definition: HiggsTemplateCrossSectionsDefs.h:43
Athena::StatusCategory::message
std::string message(StatusCode::code_t code) const override
Definition: AthStatusCode.cxx:12
Athena::Status::MISSING_DATA
@ MISSING_DATA
Missing/corrupted input data.
Athena::StatusCategory::name
const char * name() const override
Definition: AthStatusCode.cxx:10
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
Athena::StatusCategory
Definition: AthStatusCode.cxx:9
pmontree.code
code
Definition: pmontree.py:443
Athena::Status::TIMEOUT
@ TIMEOUT
Timeout during event processing.
Athena::Status
Status
Athena specific StatusCode values.
Definition: AthStatusCode.h:22
AthStatusCode.h