Interface IStandardFileListResolutionErrorCreator

All Known Implementing Classes:
CodeOnlyStandardFileListResolutionErrorCreator

public interface IStandardFileListResolutionErrorCreator
Handler that can create the error code and error data for the standard file resolution error behavior, see also StandardErrorFileListProcessor.
Since:
8.0.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • forGeneral

      IDiscriminatedUnionMember<String,Object> forGeneral(@Nullable AFileListResolutionError error, boolean softError)
      Creates the error code and data for when a general error occurred.
      Parameters:
      error - Error that occurred.
      softError - true if a soft error should be created, false if a hard error should be created.
      Returns:
      The error code and error data.
    • forNoSourceFileFound

      IDiscriminatedUnionMember<String,Object> forNoSourceFileFound(@Nullable AFileListResolutionError error, boolean softError)
      Creates the error code and data for when no source file could be found.
      Parameters:
      error - Error that occurred.
      softError - true if a soft error should be created, false if a hard error should be created.
      Returns:
      The error code and error data.
    • forFileSystemError

      IDiscriminatedUnionMember<String,Object> forFileSystemError(@Nullable AFileListResolutionError error, boolean softError)
      Creates the error code and data for when data could not be read from or written to the file system.
      Parameters:
      error - Error that occurred.
      softError - true if a soft error should be created, false if a hard error should be created.
      Returns:
      The error code and error data.
    • forDatabaseError

      IDiscriminatedUnionMember<String,Object> forDatabaseError(@Nullable AFileListResolutionError error, boolean softError)
      Creates the error code and data for when an error occurred during database communication.
      Parameters:
      error - Error that occurred.
      softError - true if a soft error should be created, false if a hard error should be created.
      Returns:
      The error code and error data.
    • forNetworkError

      IDiscriminatedUnionMember<String,Object> forNetworkError(@Nullable AFileListResolutionError error, boolean softError)
      Creates the error code and data for when data could not be read from the network.
      Parameters:
      error - Error that occurred.
      softError - true if a soft error should be created, false if a hard error should be created.
      Returns:
      The error code and error data.