Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
NotImplementedException.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/* NotImplementedException.cc (C) 2000-2018 */
9/* */
10/* Exception lorsqu'une fonction n'est pas implémentée. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/base/String.h"
15#include "arccore/base/NotImplementedException.h"
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
20namespace Arccore
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26NotImplementedException::
27NotImplementedException(const String& where)
28: Exception("NotImplemented",where)
29{
30}
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34
35NotImplementedException::
36NotImplementedException(const String& where,const String& message)
37: Exception("NotImplemented",where)
38, m_message(message)
39{
40}
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45NotImplementedException::
46NotImplementedException(const TraceInfo& where)
47: Exception("NotImplemented",where)
48{
49}
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54NotImplementedException::
55NotImplementedException(const TraceInfo& where,const String& message)
56: Exception("NotImplemented",where)
57, m_message(message)
58{
59}
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64NotImplementedException::
65NotImplementedException(const NotImplementedException& rhs) ARCCORE_NOEXCEPT
66: Exception(rhs)
67, m_message(rhs.m_message)
68{
69}
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74void NotImplementedException::
75explain(std::ostream& m) const
76{
77 m << "function not implemented.";
78
79 if (!m_message.null())
80 m << "Message: " << m_message << '\n';
81}
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86} // End namespace Arccore
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
90
Espace de nom de Arccore.
Definition ArcaneTypes.h:24