Skip to content
Snippets Groups Projects
Commit e8735f72 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: More explicit message in ITK exceptions

parent 231826f9
No related branches found
No related tags found
No related merge requests found
......@@ -118,9 +118,9 @@ VectorDataKeywordlist
}
default:
{
itkExceptionMacro(
<< "This type (" << m_FieldList[i].first->GetType() <<
") is not handled (yet) by GetFieldAsString(), please request for it");
itkExceptionMacro(
<< "Type of field " << m_FieldList[i].first->GetNameRef() << " (" << m_FieldList[i].first->GetType() <<
") is not handled (yet) by GetFieldAsString(), please request for it");
}
}
}
......@@ -155,9 +155,9 @@ VectorDataKeywordlist
}
default:
{
itkExceptionMacro(
<< "This type (" << m_FieldList[i].first->GetType() <<
") is not handled (yet) by GetFieldAsDouble(), please request for it");
itkExceptionMacro(
<< "Type of field " << m_FieldList[i].first->GetNameRef() << " (" << m_FieldList[i].first->GetType() <<
") is not handled (yet) by GetFieldAsDouble(), please request for it");
}
}
}
......@@ -208,7 +208,7 @@ VectorDataKeywordlist
default:
{
itkExceptionMacro(
<< "This type (" << m_FieldList[i].first->GetType() <<
<< "Type of field " << m_FieldList[i].first->GetNameRef() << " (" << m_FieldList[i].first->GetType() <<
") is not handled (yet) by GetFieldAsInt(), please request for it");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment