diff options
Diffstat (limited to 'lisp/net')
-rw-r--r-- | lisp/net/ange-ftp.el | 3 | ||||
-rw-r--r-- | lisp/net/gnutls.el | 6 | ||||
-rw-r--r-- | lisp/net/soap-client.el | 5 |
3 files changed, 3 insertions, 11 deletions
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index f6efc56023a..c3adb7208e9 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el @@ -1097,8 +1097,7 @@ All HOST values should be in lower case.") (defvar ange-ftp-trample-marker) ;; New error symbols. -(put 'ftp-error 'error-conditions '(ftp-error file-error error)) -;; (put 'ftp-error 'error-message "FTP error") +(define-error 'ftp-error nil 'file-error) ;"FTP error" ;;; ------------------------------------------------------------ ;;; Enhanced message support. diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el index 243c64ec459..37755806616 100644 --- a/lisp/net/gnutls.el +++ b/lisp/net/gnutls.el @@ -111,11 +111,7 @@ trust and key files, and priority string." :type 'gnutls-x509pki :hostname host)) -(put 'gnutls-error - 'error-conditions - '(error gnutls-error)) -(put 'gnutls-error - 'error-message "GnuTLS error") +(define-error 'gnutls-error "GnuTLS error") (declare-function gnutls-boot "gnutls.c" (proc type proplist)) (declare-function gnutls-errorp "gnutls.c" (error)) diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el index 4ba8e5b5854..1d4a9b573da 100644 --- a/lisp/net/soap-client.el +++ b/lisp/net/soap-client.el @@ -1352,10 +1352,7 @@ This is because it is easier to work with list results in LISP." ;;;; Soap Envelope parsing -(put 'soap-error - 'error-conditions - '(error soap-error)) -(put 'soap-error 'error-message "SOAP error") +(define-error 'soap-error "SOAP error") (defun soap-parse-envelope (node operation wsdl) "Parse the SOAP envelope in NODE and return the response. |