Package org.apache.flink.util
Class DynamicCodeLoadingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.flink.util.FlinkException
-
- org.apache.flink.util.DynamicCodeLoadingException
-
- All Implemented Interfaces:
Serializable
@Public public class DynamicCodeLoadingException extends FlinkException
An exception that is thrown if the dynamic instantiation of code fails.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); }
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DynamicCodeLoadingException
public DynamicCodeLoadingException(Throwable cause)
Creates a new exception with the given cause.- Parameters:
cause
- The exception that caused this exception
-
-