This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Base Class for handling errors/failures/exceptions. | |
* Every feature specific failure should extend [FeatureFailure] class. | |
*/ | |
sealed class Failure(val exception: Exception = Exception("Failure")) { | |
object None : Failure() | |
object NetworkConnection : Failure() | |
object ServerError : Failure() | |
/** * Extend this class for feature specific failures.*/ |