Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ParallelFatalErrorException.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* ParallelFatalErrorException.cc (C) 2000-2018 */
9/* */
10/* Exception when a 'parallel' fatal error occurred. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/utils/Iostream.h"
17#include "arcane/utils/ParallelFatalErrorException.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28ParallelFatalErrorException::
29ParallelFatalErrorException(const String& where)
30: Exception("ParallelFatalError", where)
31{
32}
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
37ParallelFatalErrorException::
38ParallelFatalErrorException(const TraceInfo& where)
39: Exception("ParallelFatalError", where)
40{
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
46ParallelFatalErrorException::
47ParallelFatalErrorException(const String& where, const String& message)
48: Exception("ParallelFatalError", where, message)
49{
50}
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
55ParallelFatalErrorException::
56ParallelFatalErrorException(const TraceInfo& where, const String& message)
57: Exception("ParallelFatalError", where, message)
58{
59}
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64void ParallelFatalErrorException::
65explain(std::ostream& m) const
66{
67 m << "Fatal error occured.\n"
68 << "Can not further proceed.\n";
69}
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74} // namespace Arcane
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --