12#ifndef ARCANE_CORE_CASEOPTIONERROR_H
13#define ARCANE_CORE_CASEOPTIONERROR_H
17#include "arcane/utils/String.h"
18#include "arcane/utils/TraceInfo.h"
20#include "arcane/core/XmlNode.h"
47 const String& message,
bool is_collective =
false);
60 const String& expected_type);
71 const String& expected_type,
86 const String& message,
bool is_collective =
false);
91 const String& message,
bool is_collective =
false);
95 const String& nodeName()
const {
return m_node_name; }
97 const String& message()
const {
return m_message; }
99 bool isCollective()
const {
return m_is_collective; }
101 const TraceInfo& trace()
const {
return m_func_info; }
108 bool m_is_collective;
static void addWarning(ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const String &message, bool is_collective=false)
Generic error.
static void addError(ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const String &message, bool is_collective=false)
Generic error.
CaseOptionError(const TraceInfo &where, const String &node_name, const String &message, bool is_collective=false)
Generic error.
static void addInvalidTypeError(ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const XmlNode &parent, const String &value, const String &expected_type)
Error when a dataset value is not of the correct type. This error is collective.
static void addOptionNotFoundError(ICaseDocumentFragment *document, const TraceInfo &where, const String &node_name, const XmlNode &parent)
Error when a dataset option is not found. This error is collective.
Interface of a part of a dataset.
Interface of a class managing an XML document of the dataset.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< String > StringConstArrayView
C equivalent of a 1D array of strings.