Do not wrap SignalClientException into RuntimeException in XmlProcessorStaxImpl; Updated version to 0.9
This commit is contained in:
parent
87a4a0e334
commit
2a19a8da87
2 changed files with 4 additions and 1 deletions
2
pom.xml
2
pom.xml
|
|
@ -10,7 +10,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>ru.nbch</groupId>
|
<groupId>ru.nbch</groupId>
|
||||||
<artifactId>credit-tracker</artifactId>
|
<artifactId>credit-tracker</artifactId>
|
||||||
<version>0.8</version>
|
<version>0.9</version>
|
||||||
<name>credit_tracker</name>
|
<name>credit_tracker</name>
|
||||||
<description>Credit Tracker Application</description>
|
<description>Credit Tracker Application</description>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package ru.nbch.credit_tracker.service.xml.stax;
|
||||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import ru.nbch.credit_tracker.exceptions.SignalClientException;
|
||||||
|
|
||||||
import javax.xml.stream.XMLInputFactory;
|
import javax.xml.stream.XMLInputFactory;
|
||||||
import javax.xml.stream.XMLStreamException;
|
import javax.xml.stream.XMLStreamException;
|
||||||
|
|
@ -104,6 +105,8 @@ public class XmlProcessorStaxImpl implements StaxXmlProcessor {
|
||||||
return staxProcessor.read(xmlStreamReader, objProcessor, batchSize, endBatchElementPath);
|
return staxProcessor.read(xmlStreamReader, objProcessor, batchSize, endBatchElementPath);
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("no stax reader registered for " + clazz);
|
throw new IllegalStateException("no stax reader registered for " + clazz);
|
||||||
|
} catch (SignalClientException e) {
|
||||||
|
throw e;
|
||||||
} catch (XMLStreamException e) {
|
} catch (XMLStreamException e) {
|
||||||
log.warn(ExceptionUtils.getStackTrace(e));
|
log.warn(ExceptionUtils.getStackTrace(e));
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue