Interface IStandardAttachmentListResolutionErrorCreator

All Known Implementing Classes:
CodeOnlyStandardAttachmentListResolutionErrorCreator

public interface IStandardAttachmentListResolutionErrorCreator
Handler that can create the error code and error data for the standard attachment resolution error behavior, see also StandardErrorAttachmentListProcessor.
Since:
8.1.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • forDatabaseError

      IDiscriminatedUnionMember<String,Object> forDatabaseError(@Nullable AAttachmentListResolutionError 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.
    • forFileSystemError

      IDiscriminatedUnionMember<String,Object> forFileSystemError(@Nullable AAttachmentListResolutionError 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.
    • forGeneral

      IDiscriminatedUnionMember<String,Object> forGeneral(@Nullable AAttachmentListResolutionError 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.
    • forNoSourceAttachmentFound

      IDiscriminatedUnionMember<String,Object> forNoSourceAttachmentFound(@Nullable AAttachmentListResolutionError error, boolean softError)
      Creates the error code and data for when no attachment 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.