NetworkException

class NetworkException(reason: NetworkException.Reason, message: String) : Exception

This message is thrown when network problems occurred while accessing cloud storage. Reasons may be:

  • Timeout

  • Network unreachable or down A network exception is always temporary, a retry of the same operation may be successful.

Parameters

reason

The reason why the cloud storage could not be accessed

message

A message giving more info about the problem

Constructors

NetworkException
Link copied to clipboard
fun NetworkException(reason: NetworkException.Reason, message: String)
The reason why the cloud storage could not be accessed

Types

Reason
Link copied to clipboard
enum Reason : Enum<NetworkException.Reason>
Enumeration of reasons for a NetworkException to be thrown

Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(p0: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

cause
Link copied to clipboard
open val cause: Throwable?
message
Link copied to clipboard
open val message: String?
reason
Link copied to clipboard
val reason: NetworkException.Reason
The reason why the cloud storage could not be accessed