Exemple #1
0
DataError::DataError(const IdfObject& object, DataErrorType errorType) 
  : m_scope(Scope::Object),
    m_type(errorType),
    m_fieldIndex(0),
    m_objectHandle(object.handle()),
    m_objectType(object.iddObject().type())
{
  // construct object-level error
  OptionalString oName = object.name();
  if (oName) { m_objectName = *oName; }
}