Platform and version requirements: Common
Contains all the exception classes
AddressInUseException (Common) |
class AddressInUseException : SokException Exception thrown when trying to bind a socket to an address/port already bound |
BufferDestroyedException (Common) |
class BufferDestroyedException : SokException Exception thrown when trying to modify the buffer after the destroy() method was called |
BufferOverflowException (Common) |
class BufferOverflowException : SokException Exception thrown when trying to put a value too large for the remaining space in the buffer |
BufferUnderflowException (Common) |
class BufferUnderflowException : SokException Exception thrown when trying to read a value too large for the remaining space in the buffer |
CloseException (Common) |
open class CloseException : SokException Parent class of the exceptions thrown when gracefully closing a socket |
ConcurrentReadingException (Common) |
class ConcurrentReadingException : SokException Exception thrown when trying to read the socket while another read call is executing |
ConnectionRefusedException (Common) |
class ConnectionRefusedException : SokException Exception thrown when a client tries to connect and fails |
ForceCloseException (Common) |
class ForceCloseException : CloseException Exception passed to the socket exception handler whent the socket is forcefully closed by a call to the forceClose method |
NormalCloseException (Common) |
class NormalCloseException : CloseException Exception passed to the socket exception handler when the socket is gracefully closed by a call to the close method |
OptionNotSupportedException (Common) |
class OptionNotSupportedException : SokException Exception thrown when trying to get/set a socket option not supported on the platform |
PeerClosedException (Common) |
class PeerClosedException : CloseException Exception thrown when trying to perform an I/O on a closed socket |
SocketClosedException (Common) |
class SocketClosedException : SokException Exception thrown when trying to perform an I/O on a closed socket |
SokException (Common) |
open class SokException : Exception Parent class of any exception thrown by Sok |
handleException (Common) |
fun <ERROR CLASS>.handleException(exception: Throwable ): Unit Extension function used to throw an exception in a particular CoroutineExceptionHandler without having to pass an EmptyCoroutineContext |