Skip to content

Commit

Permalink
Merge pull request #703 from lat-lon/exceptionInvalidPoint-3499
Browse files Browse the repository at this point in the history
Fixed exception code and status code of response when invalid geometry is inserted
  • Loading branch information
copierrj authored Aug 17, 2016
2 parents ac6941f + 161e105 commit ec9791e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
import static org.deegree.commons.ows.exception.OWSException.INVALID_PARAMETER_VALUE;
import static org.deegree.commons.ows.exception.OWSException.INVALID_VALUE;
import static org.deegree.commons.ows.exception.OWSException.MISSING_PARAMETER_VALUE;
import static org.deegree.commons.ows.exception.OWSException.NO_APPLICABLE_CODE;
import static org.deegree.commons.ows.exception.OWSException.OPERATION_NOT_SUPPORTED;
Expand Down Expand Up @@ -647,6 +648,9 @@ private List<ParsedPropertyReplacement> getReplacementProps( Update update, Feat
xmlStream.require( END_ELEMENT, null, "Property" );
// contract: skip to next ELEMENT_EVENT
xmlStream.nextTag();
} catch ( XMLParsingException e ) {
LOG.debug( e.getMessage(), e );
throw new OWSException( e.getMessage(), INVALID_VALUE );
} catch ( Exception e ) {
LOG.debug( e.getMessage(), e );
throw new OWSException( e.getMessage(), NO_APPLICABLE_CODE );
Expand Down

0 comments on commit ec9791e

Please sign in to comment.