
commonMain.com.ditchoom.socket.SocketException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of socket-jvm Show documentation
Show all versions of socket-jvm Show documentation
Simple multiplatform kotlin coroutines based socket.
package com.ditchoom.socket
open class SocketException(
override val message: String,
override val cause: Throwable? = null
) : Exception(message, cause)
class SocketClosedException(
override val message: String,
override val cause: Throwable? = null
) : SocketException(message, cause)
class SocketUnknownHostException(
hostname: String?,
extraMessage: String = "",
override val cause: Throwable? = null
) : SocketException(
"Failed to get a socket address for hostname: $hostname${if (extraMessage.isNotEmpty()) "\r\nextraMessage" else ""}",
cause
)
open class SSLSocketException(message: String, cause: Throwable? = null) :
SocketException(message, cause)
class SSLHandshakeFailedException(source: Exception) :
SSLSocketException(source.message ?: "Failed to complete SSL handshake", source)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy