with Cause
public static ManagedProcessInterruptedException withCause(String where, String procLongName, InterruptedException cause)
Creates a new ManagedProcessInterruptedException with an underlying cause.
This is a convenience method for wrapping an existing InterruptedException while preserving its cause chain.
Return
a new ManagedProcessInterruptedException initialized with the given cause
Parameters
where
where the interruption occurred
proc Long Name
the descriptive name of the managed process
cause
the original InterruptedException that triggered this