Class CompositeOwsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.n52.shetland.ogc.ows.exception.OwsExceptionReport
-
- org.n52.shetland.ogc.ows.exception.CompositeOwsException
-
- All Implemented Interfaces:
Serializable
public class CompositeOwsException extends OwsExceptionReport
CompositeOwsExceptionReportwhich can contain severalOwsExceptionReports which were thrown- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeOwsException()CompositeOwsException(Collection<? extends OwsExceptionReport> exceptions)CompositeOwsException(OwsExceptionReport... exceptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeOwsExceptionadd(Collection<? extends OwsExceptionReport> exceptions)CompositeOwsExceptionadd(OwsExceptionReport... exceptions)CompositeOwsExceptionaddAllOf(CompositeOwsException exceptions)static <T> voidcheck(Stream<? extends T> stream, ThrowingConsumer<? super T,? extends OwsExceptionReport> consumer)List<? extends CodedException>getExceptions()booleanhasExceptions()booleanisEmpty()intsize()voidthrowIfNotEmpty()static <T> Collector<? super T,?,CompositeOwsException>toCompositeException(ThrowingConsumer<? super T,? extends OwsExceptionReport> fun)<T> Optional<T>wrap(ThrowingCallable<T,OwsExceptionReport> runnable)voidwrap(ThrowingRunnable<OwsExceptionReport> runnable)-
Methods inherited from class org.n52.shetland.ogc.ows.exception.OwsExceptionReport
getMessage, getNamespace, getStatus, getVersion, hasStatus, setStatus, setVersion
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CompositeOwsException
public CompositeOwsException(OwsExceptionReport... exceptions)
-
CompositeOwsException
public CompositeOwsException(Collection<? extends OwsExceptionReport> exceptions)
-
CompositeOwsException
public CompositeOwsException()
-
-
Method Detail
-
addAllOf
public final CompositeOwsException addAllOf(CompositeOwsException exceptions)
-
add
public final CompositeOwsException add(Collection<? extends OwsExceptionReport> exceptions)
-
add
public final CompositeOwsException add(OwsExceptionReport... exceptions)
-
getExceptions
public List<? extends CodedException> getExceptions()
- Specified by:
getExceptionsin classOwsExceptionReport- Returns:
- Returns the ExceptionTypes of this exception
-
throwIfNotEmpty
public void throwIfNotEmpty() throws CompositeOwsException- Throws:
CompositeOwsException
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
hasExceptions
public boolean hasExceptions()
-
wrap
public void wrap(ThrowingRunnable<OwsExceptionReport> runnable)
-
wrap
public <T> Optional<T> wrap(ThrowingCallable<T,OwsExceptionReport> runnable)
-
toCompositeException
public static <T> Collector<? super T,?,CompositeOwsException> toCompositeException(ThrowingConsumer<? super T,? extends OwsExceptionReport> fun)
-
check
public static <T> void check(Stream<? extends T> stream, ThrowingConsumer<? super T,? extends OwsExceptionReport> consumer) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
-