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 : SokExceptionException thrown when trying to bind a socket to an address/port already bound |
| BufferDestroyedException (Common) |
class BufferDestroyedException : SokExceptionException thrown when trying to modify the buffer after the destroy() method was called |
| BufferOverflowException (Common) |
class BufferOverflowException : SokExceptionException thrown when trying to put a value too large for the remaining space in the buffer |
| BufferUnderflowException (Common) |
class BufferUnderflowException : SokExceptionException thrown when trying to read a value too large for the remaining space in the buffer |
| CloseException (Common) |
open class CloseException : SokExceptionParent class of the exceptions thrown when gracefully closing a socket |
| ConcurrentReadingException (Common) |
class ConcurrentReadingException : SokExceptionException thrown when trying to read the socket while another read call is executing |
| ConnectionRefusedException (Common) |
class ConnectionRefusedException : SokExceptionException thrown when a client tries to connect and fails |
| OptionNotSupportedException (Common) |
class OptionNotSupportedException : SokExceptionException thrown when trying to get/set a socket option not supported on the platform |
| SocketClosedException (Common) |
class SocketClosedException : SokExceptionException thrown when trying to perform an I/O on a closed socket |