Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
CaseOptionException.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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 related to the dataset. */
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
35class ARCANE_CORE_EXPORT CaseOptionException
36: public Exception
37{
38 public:
39
45 CaseOptionException(const String& where, const String& node_name,
46 const XmlNode& parent, const String& value,
47 const String& type);
53 CaseOptionException(const String& where, const String& node_name,
54 const XmlNode& parent);
56 CaseOptionException(const String& where, const String& message, bool is_collective = false);
58 CaseOptionException(const TraceInfo& where, const String& message, bool is_collective = false);
59 // Copy constructor
60 CaseOptionException(const CaseOptionException& rhs) ARCANE_NOEXCEPT;
61 ~CaseOptionException() ARCANE_NOEXCEPT override;
62
63 public:
64
65 void explain(std::ostream& m) const override;
66
67 private:
68
69 String m_node_name;
70 XmlNode m_parent;
71 String m_value;
72 String m_type;
73 String m_message;
74};
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
78
79} // namespace Arcane
80
81/*---------------------------------------------------------------------------*/
82/*---------------------------------------------------------------------------*/
83
84#endif
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.
const String & where() const
Location of the exception.
const String & message() const
Exception message.
Exception(const String &name, const String &where)
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --