isInvalidHandleError method

bool isInvalidHandleError(
  1. Object error
)

Whether error proves that the serialized handle is permanently invalid.

Return false for uncertain and temporary failures. If classification itself throws, the collection preserves the handle.

Implementation

bool isInvalidHandleError(final Object error) {
  return error is InvalidPersistentAccessHandleException;
}