List of usage examples for org.springframework.oxm UnmarshallingFailureException contains
public boolean contains(@Nullable Class<?> exType)
From source file:com.cisco.cta.taxii.adapter.persistence.SimpleFileHandler.java
@Override public TaxiiStatus load() { try {//from w w w . j a v a 2 s. c o m Source source = new StreamSource(file); return (TaxiiStatus) marshaller.unmarshal(source); } catch (UnmarshallingFailureException e) { if (e.contains(FileNotFoundException.class)) { log.info("File {} doesn't exist yet", file); return new TaxiiStatus(); } else { throw e; } } }