public class ModelRegistrationException extends RuntimeException
RuntimeException to handle checked exceptions thrown from ModelRegistrationTask
that can be run in CompletableFuture.| Constructor and Description |
|---|
ModelRegistrationException() |
ModelRegistrationException(org.osgi.service.http.NamespaceException cause) |
ModelRegistrationException(javax.servlet.ServletException cause) |
ModelRegistrationException(String message) |
ModelRegistrationException(String message,
Throwable cause) |
ModelRegistrationException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
| Modifier and Type | Method and Description |
|---|---|
void |
throwTheCause()
Method called from the code that runs
ModelRegistrationTask using
CompletableFuture when ExecutionException is caught. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ModelRegistrationException()
public ModelRegistrationException(String message)
public ModelRegistrationException(javax.servlet.ServletException cause)
public ModelRegistrationException(org.osgi.service.http.NamespaceException cause)
public void throwTheCause()
throws javax.servlet.ServletException,
org.osgi.service.http.NamespaceException
ModelRegistrationTask using
CompletableFuture when ExecutionException is caught.javax.servlet.ServletExceptionorg.osgi.service.http.NamespaceExceptionCopyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.