12#ifndef ARCCORE_COMMON_EXCEPTIONUTILS_H
13#define ARCCORE_COMMON_EXCEPTIONUTILS_H
18#include "arccore/common/CommonGlobal.h"
25namespace Arcane::ExceptionUtils
42extern "C++" ARCCORE_COMMON_EXPORT
Int32
43print(ITraceMng* tm,
bool is_no_continue =
true);
57extern "C++" ARCCORE_COMMON_EXPORT
Int32
58print(
const std::exception& ex, ITraceMng* tm,
bool is_no_continue =
true);
72extern "C++" ARCCORE_COMMON_EXPORT
Int32
73print(
const Exception& ex, ITraceMng* tm,
bool is_no_continue =
true);
93extern "C++" ARCCORE_COMMON_EXPORT
Int32
105extern "C++" ARCCORE_COMMON_EXPORT
void
Declarations of types for the 'base' component of Arccore.
Int32 print(ITraceMng *tm, bool is_no_continue=true)
Prints a message for an unknown exception.
void callAndTerminateIfThrow(std::function< void()> function, ITraceMng *tm=nullptr)
Calls a function and terminates the program if an exception occurs.
Int32 callWithTryCatch(std::function< void()> function, ITraceMng *tm=nullptr)
Calls a function while catching and displaying exceptions.
std::int32_t Int32
Signed integer type of 32 bits.