Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
FatalErrorException.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* FatalErrorException.cc (C) 2000-2018 */
9/* */
10/* Exception lorsqu'une erreur fatale est survenue. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/base/String.h"
15#include "arccore/base/FatalErrorException.h"
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
20namespace Arccore
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26FatalErrorException::
27FatalErrorException(const String& awhere)
28: Exception("FatalError",awhere)
29{
30 arccoreDebugPause("FatalError");
31}
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35
36FatalErrorException::
37FatalErrorException(const String& awhere,const String& amessage)
38: Exception("FatalError",awhere,amessage)
39{
40 arccoreDebugPause("FatalError");
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
46FatalErrorException::
47FatalErrorException(const TraceInfo& awhere)
48: Exception("FatalError",awhere)
49{
50 arccoreDebugPause("FatalError");
51}
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56FatalErrorException::
57FatalErrorException(const TraceInfo& awhere,const String& amessage)
58: Exception("FatalError",awhere,amessage)
59{
60 arccoreDebugPause("FatalError");
61}
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66FatalErrorException::
67FatalErrorException(const FatalErrorException& rhs) ARCCORE_NOEXCEPT
68: Exception(rhs)
69{
70}
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75void FatalErrorException::
76explain(std::ostream& m) const
77{
78 m << "Fatal error occured.\n"
79 << "Can not further proceed.\n";
80}
81
82/*---------------------------------------------------------------------------*/
83/*---------------------------------------------------------------------------*/
84
85} // End namespace Arccore
86
87/*---------------------------------------------------------------------------*/
88/*---------------------------------------------------------------------------*/
89
Espace de nom de Arccore.
Definition ArcaneTypes.h:24
ARCCORE_BASE_EXPORT void arccoreDebugPause(const char *msg)
Passe en mode pause ou lance une erreur fatale.