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 alsoStandardErrorAttachmentListProcessor
.- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDiscriminatedUnionMember<String,Object>
forDatabaseError(AAttachmentListResolutionError error, boolean softError)
Creates the error code and data for when an error occurred during database communication.IDiscriminatedUnionMember<String,Object>
forFileSystemError(AAttachmentListResolutionError error, boolean softError)
Creates the error code and data for when data could not be read from or written to the file system.IDiscriminatedUnionMember<String,Object>
forGeneral(AAttachmentListResolutionError error, boolean softError)
Creates the error code and data for when a general error occurred.IDiscriminatedUnionMember<String,Object>
forNoSourceAttachmentFound(AAttachmentListResolutionError error, boolean softError)
Creates the error code and data for when no attachment could be found.
-
-
-
Method Detail
-
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.
-
-