Class LoggingFileOperationCallback

java.lang.Object
com.helger.io.file.LoggingFileOperationCallback
All Implemented Interfaces:
com.helger.base.callback.ICallback, IFileOperationCallback

public class LoggingFileOperationCallback extends Object implements IFileOperationCallback
A logging implementation of the IFileOperationCallback interface.
Author:
Philip Helger
  • Constructor Details

    • LoggingFileOperationCallback

      public LoggingFileOperationCallback()
  • Method Details

    • onSuccess

      public void onSuccess(@NonNull EFileIOOperation eOperation, @NonNull File aFile1, @Nullable File aFile2)
      Description copied from interface: IFileOperationCallback
      Called upon operation success.
      Specified by:
      onSuccess in interface IFileOperationCallback
      Parameters:
      eOperation - The operation that succeeded.
      aFile1 - The first file worked upon. May not be null.
      aFile2 - The second file worked upon. May be null.
    • onError

      public void onError(@NonNull EFileIOOperation eOperation, @NonNull EFileIOErrorCode eErrorCode, @NonNull File aFile1, @Nullable File aFile2, @Nullable Exception aException)
      Description copied from interface: IFileOperationCallback
      Called upon operation error.
      Specified by:
      onError in interface IFileOperationCallback
      Parameters:
      eOperation - The operation that failed.
      eErrorCode - The error code that occurred.
      aFile1 - The first file worked upon. May not be null.
      aFile2 - The second file worked upon. May be null.
      aException - The exception that occurred. May be null.