Exporting a package that contains an exception fails