Platform and version requirements: Common
Contains all the exception classes
| 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 |
| ForceCloseException (Common) |
class ForceCloseException : CloseExceptionException passed to the socket exception handler whent the socket is forcefully closed by a call to the forceClose method |
| NormalCloseException (Common) |
class NormalCloseException : CloseExceptionException passed to the socket exception handler when the socket is gracefully closed by a call to the close method |
| OptionNotSupportedException (Common) |
class OptionNotSupportedException : SokExceptionException thrown when trying to get/set a socket option not supported on the platform |
| PeerClosedException (Common) |
class PeerClosedException : CloseExceptionException thrown when trying to perform an I/O on a closed socket |
| SocketClosedException (Common) |
class SocketClosedException : SokExceptionException thrown when trying to perform an I/O on a closed socket |
| SokException (Common) |
open class SokException : ExceptionParent class of any exception thrown by Sok |
| handleException (Common) |
fun <ERROR CLASS>.handleException(exception: Throwable): UnitExtension function used to throw an exception in a particular CoroutineExceptionHandler without having to pass an EmptyCoroutineContext |