cheroot.errors module#
Collection of exceptions raised and/or processed by Cheroot.
- exception cheroot.errors.FatalSSLAlert#
Bases:
ExceptionException raised when the SSL implementation signals a fatal alert.
- exception cheroot.errors.MaxSizeExceeded#
Bases:
ExceptionException raised when a client sends more data then allowed under limit.
Depends on
request.body.maxbytesconfig option if used within CherryPy.
- exception cheroot.errors.NoSSLError#
Bases:
ExceptionException raised when a client speaks HTTP to an HTTPS socket.
- cheroot.errors.acceptable_sock_shutdown_error_codes = {9, 32, 104, 107, 108}#
Errors that may happen during the connection close sequence.
EBADF — operating on a closed or invalid file descriptor
WSAENOTSOCK — Windows equivalent of EBADF; raised when the socket has already been closed by the OS or another thread
ENOTCONN — client is no longer connected
EPIPE — write on a pipe while the other end has been closed
ESHUTDOWN — write on a socket which has been shutdown for writing
ECONNRESET — connection is reset by the peer, we received a TCP RST packet
Refs: