@Public public class DynamicCodeLoadingException extends FlinkException
This exception is supposed to "sum up" the zoo of exceptions typically thrown around dynamic code loading and instantiations:
try {
Class.forName(classname).asSubclass(TheType.class).newInstance();
}
catch (ClassNotFoundException | ClassCastException | InstantiationException | IllegalAccessException e) {
throw new DynamicCodeLoadingException("Could not load and instantiate " + classname", e);
}
Constructor and Description |
---|
DynamicCodeLoadingException(String message,
Throwable cause)
Creates a new exception with the given message and cause.
|
DynamicCodeLoadingException(Throwable cause)
Creates a new exception with the given cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DynamicCodeLoadingException(Throwable cause)
cause
- The exception that caused this exceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.