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
Composite
OwsExceptionReport which can contain several OwsExceptionReports which were
thrown- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeOwsException(Collection<? extends OwsExceptionReport> exceptions) CompositeOwsException(OwsExceptionReport... exceptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal CompositeOwsExceptionadd(Collection<? extends OwsExceptionReport> exceptions) final CompositeOwsExceptionadd(OwsExceptionReport... exceptions) final CompositeOwsExceptionaddAllOf(CompositeOwsException exceptions) static <T> voidcheck(Stream<? extends T> stream, ThrowingConsumer<? super T, ? extends OwsExceptionReport> consumer) List<? extends CodedException> booleanbooleanisEmpty()intsize()voidstatic <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, setVersionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CompositeOwsException
-
CompositeOwsException
-
CompositeOwsException
public CompositeOwsException()
-
-
Method Details
-
addAllOf
-
add
-
add
-
getExceptions
- Specified by:
getExceptionsin classOwsExceptionReport- Returns:
- Returns the ExceptionTypes of this exception
-
throwIfNotEmpty
- Throws:
CompositeOwsException
-
size
public int size() -
isEmpty
public boolean isEmpty() -
hasExceptions
public boolean hasExceptions() -
wrap
-
wrap
-
toCompositeException
public static <T> Collector<? super T,?, toCompositeExceptionCompositeOwsException> (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
-