sok / Sok.Exceptions / SokException
open class SokException :
Exception
(source)
Platform and version requirements: Common
Parent class of any exception thrown by Sok
message
- Message given by the exception when thrown
<init> | SokException(message: String = "Something unexpected happened") Parent class of any exception thrown by Sok |
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 |
OptionNotSupportedException (Common) |
class OptionNotSupportedException : SokException Exception thrown when trying to get/set a socket option not supported on the platform |
SocketClosedException (Common) |
class SocketClosedException : SokException Exception thrown when trying to perform an I/O on a closed socket |