Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
NotSupportedException.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/* NotSupportedException.cc (C) 2000-2018 */
9/* */
10/* Exception lorsqu'une opération n'est pas supportée. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/base/String.h"
15#include "arccore/base/NotSupportedException.h"
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
20namespace Arccore
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26NotSupportedException::
27NotSupportedException(const String& where)
28: Exception("NotSupported",where)
29{
30}
31
32/*---------------------------------------------------------------------------*/
33/*---------------------------------------------------------------------------*/
34
35NotSupportedException::
36NotSupportedException(const String& where,const String& message)
37: Exception("NotSupported",where)
38, m_message(message)
39{
40}
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45NotSupportedException::
46NotSupportedException(const TraceInfo& where)
47: Exception("NotSupported",where)
48{
49}
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54NotSupportedException::
55NotSupportedException(const TraceInfo& where,const String& message)
56: Exception("NotSupported",where)
57, m_message(message)
58{
59}
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64NotSupportedException::
65NotSupportedException(const NotSupportedException& ex) ARCCORE_NOEXCEPT
66: Exception(ex)
67, m_message(ex.m_message)
68{
69}
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74void NotSupportedException::
75explain(std::ostream& m) const
76{
77 m << "L'opération demandée n'est pas supportée.\n";
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