Skip to content

Instantly share code, notes, and snippets.

@Aldikitta
Created June 14, 2023 09:28
Show Gist options
  • Save Aldikitta/5f4a937fbb5cedea28fcc6dbfe12b6dd to your computer and use it in GitHub Desktop.
Save Aldikitta/5f4a937fbb5cedea28fcc6dbfe12b6dd to your computer and use it in GitHub Desktop.
open class AppException(message: String? = null, cause: Throwable? = null) :
Throwable(message, cause)
class NetworkException(message: String? = null, cause: Throwable? = null) :
AppException(message, cause)
class ServerException(message: String? = null, cause: Throwable? = null) :
AppException(message, cause)
class ClientException(message: String? = null, cause: Throwable? = null) :
AppException(message, cause)
class UnknownException(message: String? = null, cause: Throwable? = null) :
AppException(message, cause)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment