ATLAS Offline Software
Loading...
Searching...
No Matches
error.h File Reference

Helper for emitting error messages. More...

#include <format>
#include "AthenaKernel/errorcheck.h"
#include "GaudiKernel/System.h"
Include dependency graph for error.h:

Go to the source code of this file.

Namespaces

namespace  AthContainers_detail

Macros

#define ATHCONTAINERS_MSG_OPEN   (
#define ATHCONTAINERS_MSG_CLOSE   )
#define ATHCONTAINERS_MSG(msg, ...)
#define ATHCONTAINERS_ERROR(ctx, msg, ...)
#define ATHCONTAINERS_WARNING(ctx, msg, ...)

Detailed Description

Helper for emitting error messages.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Sep, 2013

This defines the macros ATHCONTAINER_ERROR and ATHCONTAINER_WARNING, which emit an diagnostics through the message service if we're built for Athena and print them directly if we're built standalone.

We also define AthContainers_detail::typeinfoName.

Definition in file error.h.

Macro Definition Documentation

◆ ATHCONTAINERS_ERROR

#define ATHCONTAINERS_ERROR ( ctx,
msg,
... )
Value:
errorcheck::ReportMessage(MSG::ERROR, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << ATHCONTAINERS_MSG(msg __VA_OPT__ (, __VA_ARGS__))
Helper class to use to report a message.
MsgStream & msgstream()
Convert to a MsgStream reference.
#define ATHCONTAINERS_MSG(msg,...)
Definition error.h:30
MsgStream & msg
Definition testRead.cxx:32

Definition at line 62 of file error.h.

62#define ATHCONTAINERS_ERROR(ctx, msg, ...) \
63 errorcheck::ReportMessage(MSG::ERROR, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << ATHCONTAINERS_MSG(msg __VA_OPT__ (, __VA_ARGS__))

◆ ATHCONTAINERS_MSG

#define ATHCONTAINERS_MSG ( msg,
... )
Value:
__VA_OPT__(std::format ATHCONTAINERS_MSG_OPEN ) msg __VA_OPT__ (, __VA_ARGS__ ATHCONTAINERS_MSG_CLOSE)
#define ATHCONTAINERS_MSG_CLOSE
Definition error.h:29
#define ATHCONTAINERS_MSG_OPEN
Definition error.h:28

Definition at line 30 of file error.h.

◆ ATHCONTAINERS_MSG_CLOSE

#define ATHCONTAINERS_MSG_CLOSE   )

Definition at line 29 of file error.h.

◆ ATHCONTAINERS_MSG_OPEN

#define ATHCONTAINERS_MSG_OPEN   (

Definition at line 28 of file error.h.

◆ ATHCONTAINERS_WARNING

#define ATHCONTAINERS_WARNING ( ctx,
msg,
... )
Value:
errorcheck::ReportMessage(MSG::WARNING, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << ATHCONTAINERS_MSG(msg __VA_OPT__ (, __VA_ARGS__))

Definition at line 65 of file error.h.

65#define ATHCONTAINERS_WARNING(ctx, msg, ...) \
66 errorcheck::ReportMessage(MSG::WARNING, __LINE__, __FILE__, "", ATLAS_PACKAGE_NAME, ctx).msgstream() << ATHCONTAINERS_MSG(msg __VA_OPT__ (, __VA_ARGS__))