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 alsoStandardErrorFileListProcessor
.- Since:
- 7.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDiscriminatedUnionMember<String,Object>
forDatabaseError(AFileListResolutionError error, boolean softError)
Creates the error code and data for when an error occurred during database communication.IDiscriminatedUnionMember<String,Object>
forFileSystemError(AFileListResolutionError 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(AFileListResolutionError error, boolean softError)
Creates the error code and data for when a general error occurred.IDiscriminatedUnionMember<String,Object>
forNetworkError(AFileListResolutionError error, boolean softError)
Creates the error code and data for when data could not be read from the network.IDiscriminatedUnionMember<String,Object>
forNoSourceFileFound(AFileListResolutionError error, boolean softError)
Creates the error code and data for when no source file could be found.
-
-
-
Method Detail
-
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.
-
-