Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
CaseOptionError.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 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/* CaseOptionError.h (C) 2000-2023 */
9/* */
10/* Erreur dans le jeu de données. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CASEOPTIONERROR_H
13#define ARCANE_CASEOPTIONERROR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18#include "arcane/utils/TraceInfo.h"
19
20#include "arcane/XmlNode.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31class ICaseDocument;
32class ICaseDocumentFragment;
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
40class ARCANE_CORE_EXPORT CaseOptionError
41{
42 public:
43
45 CaseOptionError(const TraceInfo& where,const String& node_name,
46 const String& message,bool is_collective=false);
47
48 public:
49
54 static void addInvalidTypeError(ICaseDocumentFragment* document,
55 const TraceInfo& where,
56 const String& node_name,
57 const XmlNode& parent,
58 const String& value,
59 const String& expected_type);
60
65 static void addInvalidTypeError(ICaseDocumentFragment* document,
66 const TraceInfo& where,
67 const String& node_name,
68 const XmlNode& parent,
69 const String& value,
70 const String& expected_type,
72
77 static void addOptionNotFoundError(ICaseDocumentFragment* document,
78 const TraceInfo& where,
79 const String& node_name,
80 const XmlNode& parent);
81
83 static void addError(ICaseDocumentFragment* document,
84 const TraceInfo& where,const String& node_name,
85 const String& message,bool is_collective=false);
86
88 static void addWarning(ICaseDocumentFragment* document,
89 const TraceInfo& where,const String& node_name,
90 const String& message,bool is_collective=false);
91
92 public:
93
94 const String& nodeName() const { return m_node_name; }
95
96 const String& message() const { return m_message; }
97
98 bool isCollective() const { return m_is_collective; }
99
100 const TraceInfo& trace() const { return m_func_info; }
101
102 private:
103
104 TraceInfo m_func_info;
105 String m_node_name;
106 String m_message;
107 bool m_is_collective;
108};
109
110/*---------------------------------------------------------------------------*/
111/*---------------------------------------------------------------------------*/
112
113} // End namespace Arcane
114
115/*---------------------------------------------------------------------------*/
116/*---------------------------------------------------------------------------*/
117
118#endif
119
Erreur dans le jeu de données.
Interface d'une partie d'un jeu de données.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Noeud d'un arbre DOM.
Definition XmlNode.h:51
Vue constante d'un tableau de type T.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-