Revision 9833
Added by Jing Tao almost 8 years ago
ObjectFormatService.java | ||
---|---|---|
28 | 28 |
import java.util.HashMap; |
29 | 29 |
|
30 | 30 |
import org.apache.log4j.Logger; |
31 |
import org.dataone.exceptions.MarshallingException; |
|
31 | 32 |
import org.dataone.service.util.TypeMarshaller; |
32 | 33 |
import org.dataone.service.exceptions.NotFound; |
33 | 34 |
import org.dataone.service.exceptions.NotImplemented; |
... | ... | |
35 | 36 |
import org.dataone.service.types.v2.ObjectFormat; |
36 | 37 |
import org.dataone.service.types.v1.ObjectFormatIdentifier; |
37 | 38 |
import org.dataone.service.types.v2.ObjectFormatList; |
38 |
import org.jibx.runtime.JiBXException; |
|
39 | 39 |
|
40 | 40 |
import edu.ucsb.nceas.metacat.DBUtil; |
41 | 41 |
import edu.ucsb.nceas.metacat.DocumentImpl; |
... | ... | |
205 | 205 |
"Unexpected exception from the service - " |
206 | 206 |
+ e.getClass() + ": " + e.getMessage()); |
207 | 207 |
|
208 |
} catch (JiBXException e) {
|
|
208 |
} catch (MarshallingException e) {
|
|
209 | 209 |
throw new ServiceFailure("4841", |
210 | 210 |
"Unexpected exception from the service - " |
211 | 211 |
+ e.getClass() + ": " + e.getMessage()); |
Also available in: Unified diff
Replaced the JiBXException by MarshallingException.