14#include "arcane/core/ArcaneException.h"
16#include "arcane/utils/Iostream.h"
17#include "arcane/utils/TraceInfo.h"
19#include "arcane/core/IVariable.h"
32, m_invalid_name(invalid_name)
42 m <<
"Name '" << m_invalid_name <<
"' is not a valid identifier.\n";
43 m <<
"Identifiers must start with an alphabetical character (a-zA-Z)\n";
44 m <<
"followed by alphabetical characters, figures,\n";
45 m <<
"underscores '_', dots '.' or hyphen '-'.\n";
67 m <<
"Trying to use invalid item identifier: " << m_bad_id;
76InternalErrorException::
77InternalErrorException(
const String& where,
const String& why)
86InternalErrorException::
87InternalErrorException(
const TraceInfo& where,
const String& why)
88: Exception(
"InternalError",where)
96InternalErrorException::
109 m <<
"Internal error ocurred:\n";
110 m <<
"'" << m_why <<
"'\n";
119BadVariableKindTypeException::
125, m_data_type(data_type)
126, m_dimension(dimension)
136 m <<
"Wrong variable type:\n"
137 <<
"Variable '" << m_valid_var->
name() <<
"'\n";
138 m <<
"declared as '" << m_item_kind <<
'.' << m_data_type <<
"." << m_dimension
139 <<
"' has already been declared\n"
140 <<
"as '" << m_valid_var->itemKind() <<
'.' << m_valid_var->dataType()
141 <<
"." << m_valid_var->dimension()
148BadPartialVariableItemGroupNameException::
150 const String& item_group_name)
153, m_item_group_name(item_group_name)
163 m <<
"Wrong partial variable type:\n"
164 <<
"Partial Variable '" << m_valid_var->
name() <<
"'\n";
165 m <<
"declared on item group '" << m_item_group_name
166 <<
"' has already been declared\n"
167 <<
"on item group '" << m_valid_var->itemGroupName()
174UnknownItemTypeException::
185UnknownItemTypeException::
186UnknownItemTypeException(
const UnknownItemTypeException& ex) ARCANE_NOEXCEPT
188, m_nb_node(ex.m_nb_node)
189, m_item_id(ex.m_item_id)
199 m <<
"Item number <" << m_item_id <<
"> with " << m_nb_node <<
" nodes\n"
200 <<
"is not a known type.\n";
209BadReferenceException::
210BadReferenceException(
const String& where)
221 m <<
"Trying to dereference a null pointer.\n";
230ReaderWriterException::
231ReaderWriterException(
const String& where,
const String& message)
232:
Exception(
"ReaderWriterException",where, message)
239ReaderWriterException::
240ReaderWriterException(
const TraceInfo& where,
const String& message)
241: Exception(
"ReaderWriterException",where, message)
248ReaderWriterException::
260 m <<
"Exception reading/writing.\n";
282:
Exception(
"ReaderWriterException",
where,
"Actual : " + actual +
". Expected : " + expected +
".")
294 m <<
"Assertion failed.\n";
const String & where() const
Localisation de l'exception.
const char * file() const
Fichier de l'exception.
int line() const
Ligne de l'exception.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
AssertionException(const TraceInfo &where)
BadIDException(const String &where, const String &invalid_name)
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
BadItemIdException(const String &where, Integer bad_id)
Construit une exception.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
Classe de base d'une exception.
const String & where() const
Localisation de l'exception.
Exception(const String &name, const String &where)
const String & name() const
Nom de l'exception.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
Chaîne de caractères unicode.
void explain(std::ostream &m) const override
Explique la cause de l'exception dans le flot o.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Int32 Integer
Type représentant un entier.
eItemKind
Genre d'entité de maillage.
eDataType
Type d'une donnée.