14#include "arcane/utils/Iostream.h"
15#include "arcane/utils/StringBuilder.h"
17#include "arcane/core/CaseOptionError.h"
18#include "arcane/core/ICaseDocument.h"
31 const String& message,
bool is_collective)
33, m_node_name(node_name)
35, m_is_collective(is_collective)
49 String message =
"Element or attribute missing";
65 String message = String::format(
"Invalid value. Impossible to convert the string"
66 " '{0}' to the type '{1}'.",
83 String message = String::format(
"Invalid value. Impossible to convert the string"
84 " '{0}' to the type '{1}' (admissible values: {2}). ",
86 type_name, String::join(
", ", valid_values));
87 message = message +
"\nSpaces at the beginning and the end of a string matter.\nPlease check that there is none.";
97 const String& message,
bool is_collective)
108 const String& message,
bool 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.
virtual void addError(const CaseOptionError &case_error)=0
Adds an error to the dataset.
virtual void addWarning(const CaseOptionError &case_error)=0
Adds a warning to the dataset.
Unicode character string.
String xpathFullName() const
XPath name of the node with its ancestors.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< String > StringConstArrayView
C equivalent of a 1D array of strings.