12#ifndef ARCCORE_COMMON_EXCEPTIONUTILS_H
13#define ARCCORE_COMMON_EXCEPTIONUTILS_H
18#include "arccore/common/CommonGlobal.h"
25namespace Arcane::ExceptionUtils
41extern "C++" ARCCORE_COMMON_EXPORT
Int32
42print(ITraceMng* tm,
bool is_no_continue =
true);
55extern "C++" ARCCORE_COMMON_EXPORT
Int32
56print(
const std::exception& ex, ITraceMng* tm,
bool is_no_continue =
true);
69extern "C++" ARCCORE_COMMON_EXPORT
Int32
70print(
const Exception& ex, ITraceMng* tm,
bool is_no_continue =
true);
90extern "C++" ARCCORE_COMMON_EXPORT
Int32
101extern "C++" ARCCORE_COMMON_EXPORT
void
Déclarations des types de la composante 'base' de Arccore.
ARCCORE_COMMON_EXPORT Int32 print(ITraceMng *tm, bool is_no_continue=true)
Imprime un message pour une exception inconnue.
ARCCORE_COMMON_EXPORT void callAndTerminateIfThrow(std::function< void()> function, ITraceMng *tm=nullptr)
Appelle une fonction et termine le programme en cas d'exception.
ARCCORE_COMMON_EXPORT Int32 callWithTryCatch(std::function< void()> function, ITraceMng *tm=nullptr)
Appelle une fonction en récupérant et affichant les exceptions.
std::int32_t Int32
Type entier signé sur 32 bits.