Arcane  v3.16.6.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
XmlException.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* XmlException.h (C) 2000-2025 */
9/* */
10/* Exception sur les opérandes des opérations des expressions. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_XMLEXCEPTION_H
13#define ARCANE_CORE_XMLEXCEPTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Exception.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
31class XmlException
32: public Exception
33{
34 public:
35
36 XmlException(const String& where, const String& msg)
37 : Exception("XmlException", where)
38 {
39 setMessage(msg);
40 }
41 XmlException(const TraceInfo& where, const String& msg)
42 : Exception("XmlException", where)
43 {
44 setMessage(msg);
45 }
46};
47
48/*---------------------------------------------------------------------------*/
49/*---------------------------------------------------------------------------*/
50
51} // namespace Arcane
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56#endif
const String & where() const
Localisation de l'exception.
void setMessage(const String &msg)
Positionne le message de l'exception.
Exception(const String &name, const String &where)
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-