Search in sources :

Example 1 with EmxImportException

use of org.molgenis.data.importer.emx.exception.EmxImportException in project molgenis by molgenis.

the class EmxMetadataParser method setPackage.

private void setPackage(IntermediateParseResults intermediateResults, int rowIndex, String emxEntityPackage, EntityType entityType) {
    Package p = intermediateResults.getPackage(emxEntityPackage);
    if (p == null) {
        throw new EmxImportException(new UnknownPackageException(emxEntityPackage), EMX_ENTITIES, rowIndex);
    }
    entityType.setPackage(p);
}
Also used : EmxImportException(org.molgenis.data.importer.emx.exception.EmxImportException) UnknownPackageException(org.molgenis.data.UnknownPackageException) Package(org.molgenis.data.meta.model.Package)

Aggregations

UnknownPackageException (org.molgenis.data.UnknownPackageException)1 EmxImportException (org.molgenis.data.importer.emx.exception.EmxImportException)1 Package (org.molgenis.data.meta.model.Package)1