Component errors

You are here: All Systems / trivial-sockets / errors

(in-package :trivial-sockets)

;; you're using a part of the interface that the implementation doesn't do
(define-condition unsupported (error)
  ((feature :initarg :feature :reader unsupported-feature))
)


;; all-purpose error: host not found, host not responding,
;; no service on that port, etc
(define-condition socket-error (error)
  ((nested-error :initarg :nested-error :reader socket-nested-error))
)


Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.