Arcane  v3.16.9.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
BadOperationException.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/* BadOperationException.h (C) 2000-2025 */
9/* */
10/* Exception sur une opération des expressions. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_EXPR_BADOPERATIONEXCEPTION_H
13#define ARCANE_CORE_EXPR_BADOPERATIONEXCEPTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Exception.h"
18
19#include "arcane/core/datatype/VariantBase.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
35class ARCANE_EXPR_EXPORT BadOperationException
36: public Exception
37{
38 public:
39
40 BadOperationException(const String& where,const String& operationName,
41 VariantBase::eType operandType);
42 BadOperationException(const BadOperationException& ex);
43 ~BadOperationException() ARCANE_NOEXCEPT{}
44
45 public:
46
47 virtual void explain(std::ostream& m) const;
48
49 private:
50
51 String m_operation_name;
52 VariantBase::eType m_operand_type;
53};
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58}
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63#endif
64
virtual void explain(std::ostream &m) const
Explique la cause de l'exception dans le flot o.
const String & where() const
Localisation 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 -*-