public final class SafeCalling extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
onExceptionLog(com.itextpdf.commons.utils.ThrowingAction action,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
Adds a report item to the report when an exception is thrown in the action.
|
static <T> T |
onExceptionLog(com.itextpdf.commons.utils.ThrowingSupplier<T> action,
T defaultValue,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
Adds a report item to the report when an exception is thrown in the action.
|
static void |
onRuntimeExceptionLog(com.itextpdf.commons.utils.Action action,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
Adds a report item to the report when an exception is thrown in the action.
|
static <T> T |
onRuntimeExceptionLog(Supplier<T> action,
T defaultValue,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
Adds a report item to the report when an exception is thrown in the action.
|
public static void onExceptionLog(com.itextpdf.commons.utils.ThrowingAction action,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
action - The action to performreport - The report to add the ReportItem toreportItemCreator - A callback to generate a ReportItempublic static <T> T onExceptionLog(com.itextpdf.commons.utils.ThrowingSupplier<T> action,
T defaultValue,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
T - type of return valueaction - The action to performdefaultValue - The value to return when an exception is thrownreport - The report to add the ReportItem toreportItemCreator - A callback to generate a ReportItempublic static void onRuntimeExceptionLog(com.itextpdf.commons.utils.Action action,
ValidationReport report,
Function<Exception,ReportItem> reportItemCreator)
action - The action to performreport - The report to add the ReportItem toreportItemCreator - A callback to generate a ReportItempublic static <T> T onRuntimeExceptionLog(Supplier<T> action, T defaultValue, ValidationReport report, Function<Exception,ReportItem> reportItemCreator)
T - type of return valueaction - The action to performdefaultValue - The value to return when an exception is thrownreport - The report to add the ReportItem toreportItemCreator - A callback to generate a ReportItemCopyright © 1998–2025 Apryse Group NV. All rights reserved.