15#include "arcane/utils/ArcanePrecomp.h"
16#include "arcane/utils/Iostream.h"
18#include "arcane/datatype/BadVariantTypeException.h"
32BadVariantTypeException::
33BadVariantTypeException(
const String& where,VariantBase::eType wrongType)
34: Exception(
"BadVariantType", where)
35, m_wrong_type(wrongType)
42void BadVariantTypeException::
43explain(std::ostream& m)
const
45 m <<
"Invalid type for a variant: " << VariantBase::typeName(m_wrong_type)