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);
}
Aggregations