netkit/http/exception

This module contains a few possible errors associated with HTTP operations.

Types

HttpError = object of CatchableError
  code*: range[Http400 .. Http505]
Indicates an error associated with a HTTP operation.   Source Edit
ReadAbortedError = object of CatchableError
Indicates that the read operation is aborted before completion.   Source Edit
WriteAbortedError = object of CatchableError
Indicates that the write operation is aborted before completion.   Source Edit

Procs

proc newHttpError(code: range[Http400 .. Http505];
                 parentException: ref Exception = nil): ref HttpError {...}{.raises: [],
    tags: [].}
Creates a new ref HttpError.   Source Edit
proc newHttpError(code: range[Http400 .. Http505]; msg: string;
                 parentException: ref Exception = nil): ref HttpError {...}{.raises: [],
    tags: [].}
Creates a new ref HttpError.   Source Edit