switch (insRes) {                                                                                                    \
  case InsertionResult::NAMEALIASCLASH:                                                                                \
    throw Insertion::NameAliasClash("Clash with existing object for alias \"" + alias + "\"");                         \
    break;                                                                                                             \
  case InsertionResult::BADALIASEDTYPE:                                                                                \
    throw Insertion::BadAliasedType("Wrong type for object" + objName + "\", can't move the alias \"" + alias +        \
                                    "\" to it");                                                                       \
    break;                                                                                                             \
  case InsertionResult::MISSINGALIASEDOBJECT:                                                                          \
    throw Insertion::MissingAliasedObject(                                                                             \
        "Object \"" + objName + "\" is not present in the data store, can't set the alias \"" + alias + "\" for it");  \
    break;                                                                                                             \
  case InsertionResult::ALIASOFALIAS:                                                                                  \
    throw Insertion::AliasOfAlias("Object name \"" + objName + "\" is actually an alias, can't set an alias for it");  \
    break;                                                                                                             \
  case InsertionResult::ERROR:                                                                                         \
    throw Insertion::Error("Error while setting alias \"" + objName + "\"");                                           \
    break;                                                                                                             \
  default:                                                                                                             \
    throw 
EA::Exception(
"Invalid InsertionResult in THROW_ALIASING_EXC");                                              \
  }
Definition: Exception.h:24