Skip to content

Instantly share code, notes, and snippets.

View entrealist's full-sized avatar
🪂
Seize the day

Vlad Smirnov entrealist

🪂
Seize the day
View GitHub Profile
/**
* 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.*/

Proprietary Software License Agreement

Copyright (c) 2024 Vlad Smirnov. All rights reserved.

  1. This software is proprietary and confidential.
  2. The license grants you the right to use the software only.
  3. You may not:
    • Modify or decompile the software
    • Share or redistribute the software
  • Access or attempt to access the source code