Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
BadVariantTypeException.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* BadVariantTypeException.h (C) 2000-2007 */
9/* */
10/* Exception levée lorsqu'un variant n'est pas du type souhaité */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_DATATYPE_BADVARIANTTYPEEXCEPTION_H
13#define ARCANE_DATATYPE_BADVARIANTTYPEEXCEPTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Exception.h"
18
19#include "arcane/datatype/VariantBase.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
37: public Exception
38{
39 public:
40
41 BadVariantTypeException(const String& where,VariantBase::eType wrongType);
42
43 public:
44
45 virtual void explain(std::ostream& m) const;
46
47 private:
48
49 VariantBase::eType m_wrong_type;
50};
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
55ARCANE_END_NAMESPACE
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60#endif
61
Exception sur un type de variant non valide.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Classe de base d'une exception.
Chaîne de caractères unicode.