```
$error_msg = t('Fatal error attaching File : @file  to node : @type', array(
        '@file' => $value_document->getElementsByTagName('filename')->item(0)->nodeValue,
        '@type' => $wrapper->type->value()
      ));
throw new Exception($error_msg, 0, $e);
```