Arcane  v3.16.4.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
CaseOptionException.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* CaseOptionException.h (C) 2000-2025 */
9/* */
10/* Exception en rapport avec le jeu de données. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_CASEOPTIONEXCEPTION_H
13#define ARCANE_CORE_CASEOPTIONEXCEPTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Exception.h"
18#include "arcane/utils/String.h"
19
20#include "arcane/core/XmlNode.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30/*!
31 * \brief Exception en rapport avec le jeu de données.
32 * \ingroup CaseOption
33 */
34class ARCANE_CORE_EXPORT CaseOptionException
35: public Exception
36{
37 public:
38
39 /*!
40 * \brief Exception lorsqu'une option d'une jeu de données n'est pas valide.
41 *
42 * Cette exception est collective.
43 */
44 CaseOptionException(const String& where, const String& node_name,
45 const XmlNode& parent, const String& value,
46 const String& type);
47 /*!
48 * \brief Exception lorsqu'une option d'une jeu de données n'est pas trouvé.
49 *
50 * Cette exception est collective.
51 */
52 CaseOptionException(const String& where, const String& node_name,
53 const XmlNode& parent);
54 //! Exception générique
55 CaseOptionException(const String& where, const String& message, bool is_collective = false);
56 //! Exception générique
57 CaseOptionException(const TraceInfo& where, const String& message, bool is_collective = false);
58 // Constructeur de recopie
59 CaseOptionException(const CaseOptionException& rhs) ARCANE_NOEXCEPT;
60 ~CaseOptionException() ARCANE_NOEXCEPT override;
61
62 public:
63
64 void explain(std::ostream& m) const override;
65
66 private:
67
68 String m_node_name;
69 XmlNode m_parent;
70 String m_value;
71 String m_type;
72 String m_message;
73};
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
78} // namespace Arcane
79
80/*---------------------------------------------------------------------------*/
81/*---------------------------------------------------------------------------*/
82
83#endif
84
CaseOptionException(const String &where, const String &node_name, const XmlNode &parent, const String &value, const String &type)
Exception lorsqu'une option d'une jeu de données n'est pas valide.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
const String & where() const
Localisation de l'exception.
const String & message() const
Message de l'exception.
Exception(const String &name, const String &where)
Chaîne de caractères unicode.
Noeud d'un arbre DOM.
Definition XmlNode.h:51
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-