14#include "arcane/utils/ArcanePrecomp.h"
16#include "arcane/utils/Iostream.h"
17#include "arcane/utils/StringBuilder.h"
19#include "arcane/core/CaseOptionException.h"
34, m_node_name(node_name)
38 sb =
"Configuration item:\n\n"
40 m_parent.xpathFullName() +
String(
"/") + m_node_name;
42 "can not be found.\n\n"
43 "Make sure the configuration file is valid and up to date "
57, m_node_name(node_name)
63 sb =
"Configuration item:\n"
65 m_parent.xpathFullName() +
String(
"/") + m_node_name;
66 sb +=
"> is not valid.\n"
67 "Unable to cast character chain\n"
69 m_value +
"' to type <" + m_type +
">.\n";
102, m_node_name(rhs.m_node_name)
103, m_parent(rhs.m_parent)
104, m_value(rhs.m_value)
106, m_message(rhs.m_message)
114~CaseOptionException() ARCANE_NOEXCEPT
124 m << m_message <<
'\n';
Exception related to the dataset.
CaseOptionException(const String &where, const String &node_name, const XmlNode &parent, const String &value, const String &type)
Exception when a dataset option is not valid.
void explain(std::ostream &m) const override
Explains the cause of the exception in the stream o.
Base class for an exception.
const String & where() const
Location of the exception.
const String & message() const
Exception message.
Exception(const String &name, const String &where)
void setCollective(bool v)
Sets the collective state of the expression.
Unicode character string constructor.
String toString() const
Returns the constructed character string.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --