File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/java/com/github/_1c_syntax/bsl/reader/common/xstream Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 68
68
import com .thoughtworks .xstream .converters .reflection .ReflectionConverter ;
69
69
import com .thoughtworks .xstream .core .ClassLoaderReference ;
70
70
import com .thoughtworks .xstream .io .HierarchicalStreamReader ;
71
+ import com .thoughtworks .xstream .io .StreamException ;
71
72
import com .thoughtworks .xstream .io .xml .QNameMap ;
72
73
import com .thoughtworks .xstream .mapper .CachingMapper ;
73
74
import com .thoughtworks .xstream .mapper .CannotResolveClassException ;
@@ -119,11 +120,12 @@ public Object fromXML(File file) {
119
120
if (file .exists ()) {
120
121
try {
121
122
result = super .fromXML (file );
122
- } catch (ConversionException e ) {
123
- LOGGER .error ("Can't read file '{}' - it's broken \n : " , file , e );
124
- throw e ;
123
+ } catch (ConversionException e ) {
124
+ LOGGER .error ("Can't read file '{}' - it's broken (skipped) \n " , file , e );
125
125
} catch (CannotResolveClassException e ) {
126
- LOGGER .debug ("Can't read file '{}' - unknown class \n : " , file , e );
126
+ LOGGER .debug ("Can't read file '{}' - unknown class (skipped) \n " , file , e );
127
+ } catch (StreamException e ) {
128
+ LOGGER .error ("Can't read file '{}' - it's broken (skipped): {}" , file , e .getCause ().getMessage ());
127
129
}
128
130
}
129
131
return result ;
You can’t perform that action at this time.
0 commit comments