Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save virendersran01/d9d0917bf5733b009fa19c7c7a011809 to your computer and use it in GitHub Desktop.
Save virendersran01/d9d0917bf5733b009fa19c7c7a011809 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