Search in sources :

Example 1 with CompositeOwsException

use of org.n52.shetland.ogc.ows.exception.CompositeOwsException in project arctic-sea by 52North.

the class OwsExceptionReportDecoder method decode.

private OwsExceptionReport decode(ExceptionReport report) {
    String version = report.getVersion();
    ExceptionType[] exceptionTypes = report.getExceptionArray();
    List<CodedException> exceptions = Streams.stream(exceptionTypes).map(this::decode).collect(toList());
    return new CompositeOwsException(exceptions).setVersion(version);
}
Also used : ExceptionType(net.opengis.ows.x11.ExceptionType) CodedException(org.n52.shetland.ogc.ows.exception.CodedException) CompositeOwsException(org.n52.shetland.ogc.ows.exception.CompositeOwsException)

Aggregations

ExceptionType (net.opengis.ows.x11.ExceptionType)1 CodedException (org.n52.shetland.ogc.ows.exception.CodedException)1 CompositeOwsException (org.n52.shetland.ogc.ows.exception.CompositeOwsException)1