Project

General

Profile

« Previous | Next » 

Revision 9833

Added by Jing Tao almost 8 years ago

Replaced the JiBXException by MarshallingException.

View differences:

LogV2toV1Converter.java
25 25

  
26 26
import java.io.IOException;
27 27
import java.lang.reflect.InvocationTargetException;
28

  
28
import org.dataone.exceptions.MarshallingException;
29 29
import org.dataone.service.types.v1.Event;
30 30
import org.dataone.service.types.v2.Log;
31 31
import org.dataone.service.types.v2.LogEntry;
32
import org.jibx.runtime.JiBXException;
32

  
33 33
/**
34 34
 * This class represents a converter to convert an DataONE v2 Log object to a v1 Log object.
35 35
 * It probably will be removed to d1_common_java in the future. 
......
56 56
     * @throws InstantiationException 
57 57
     */
58 58
    public org.dataone.service.types.v1.Log convert(Log logV2) 
59
            throws InstantiationException, IllegalAccessException, InvocationTargetException, JiBXException, IOException {
59
            throws InstantiationException, IllegalAccessException, InvocationTargetException, MarshallingException, IOException {
60 60
        org.dataone.service.types.v1.Log logV1 = null;
61 61
        int removedLogCount =0;
62 62
        if(logV2 != null) {
......
104 104
         * @throws InstantiationException 
105 105
         */
106 106
        public org.dataone.service.types.v1.LogEntry convert(LogEntry logEntryV2) 
107
                throws InstantiationException, IllegalAccessException, InvocationTargetException, JiBXException, IOException {
107
                throws InstantiationException, IllegalAccessException, InvocationTargetException, MarshallingException, IOException {
108 108
            org.dataone.service.types.v1.LogEntry logEntryV1 = null;;
109 109
            if(logEntryV2 != null) {
110 110
                logEntryV1 = new org.dataone.service.types.v1.LogEntry();

Also available in: Unified diff