PdfEditApplyException


public final class PdfEditApplyException extends Exception


Represents an exception that occurred while applying edits on a PDF document.

Summary

Public constructors

PdfEditApplyException(
    int failureIndex,
    @NonNull List<@NonNull String> appliedEditIds,
    @NonNull Throwable cause
)

Public methods

final @NonNull List<@NonNull String>

A list of unique identifiers for the annotations that were successfully edited (inserted, updated, or removed) before the failure occurred.

final int

The index of the operation that caused the failure, relative to the order in which operations were enqueued in the EditsDraft.

Public constructors

PdfEditApplyException

Added in 1.0.0-alpha19
public PdfEditApplyException(
    int failureIndex,
    @NonNull List<@NonNull String> appliedEditIds,
    @NonNull Throwable cause
)
Parameters
int failureIndex

The index of the operation that caused the failure, relative to the order in which operations were enqueued in the EditsDraft.

@NonNull List<@NonNull String> appliedEditIds

A list of unique identifiers for the annotations that were successfully edited (inserted, updated, or removed) before the failure occurred.

@NonNull Throwable cause

The underlying cause of the failure.

Public methods

getAppliedEditIds

Added in 1.0.0-alpha19
public final @NonNull List<@NonNull StringgetAppliedEditIds()

A list of unique identifiers for the annotations that were successfully edited (inserted, updated, or removed) before the failure occurred.

getFailureIndex

Added in 1.0.0-alpha19
public final int getFailureIndex()

The index of the operation that caused the failure, relative to the order in which operations were enqueued in the EditsDraft.