public class ExceptionInjection extends Injection
ExecConstants.DRILLBIT_CONTROL_INJECTIONS session option.| Modifier and Type | Method and Description |
|---|---|
<T extends Throwable> |
throwChecked(Class<T> exceptionClass)
Throw the checked exception specified by this injection.
|
void |
throwUnchecked()
Throw the unchecked exception specified by this injection.
|
getDesc, getMsPause, getSiteClass, injectNow, isValidForBit, toStringpublic void throwUnchecked()
IllegalStateException - if it's time to throw, and the injection specified a checked exceptionpublic <T extends Throwable> void throwChecked(Class<T> exceptionClass) throws T extends Throwable
exceptionClass - the class of the exception to throwT - if it is time to throw the exceptionIllegalStateException - if it is time to throw the exception, and the exception's class
is incompatible with the class specified by the injectionT extends ThrowableCopyright © 2022 The Apache Software Foundation. All rights reserved.