Revision 9493
Added by Jing Tao almost 9 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
2370 | 2370 |
} |
2371 | 2371 |
} else { |
2372 | 2372 |
// just the lone pid in this package |
2373 |
packagePids.add(pid); |
|
2373 |
//packagePids.add(pid); |
|
2374 |
//throw an invalid request exception |
|
2375 |
throw new InvalidRequest("", "The given pid "+pid.getValue()+" is not a package id (resource map id). Please use a package id instead."); |
|
2374 | 2376 |
} |
2375 | 2377 |
|
2376 | 2378 |
//Create a temp file, then delete it and make a directory with that name |
Also available in: Unified diff
If the pid it is a package id in the getPackage method, the method will throw an InvalidRequest exception.