@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);
}
| 构造器和说明 |
|---|
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.
|
public DynamicCodeLoadingException(Throwable cause)
cause - The exception that caused this exceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.