/usr/share/racket/collects/net/url-exception.rkt is in racket-common 6.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #lang racket/base
(require racket/string
racket/contract/base
racket/list)
(define-struct (url-exception exn:fail) ())
(define (-url-exception? x)
(or (url-exception? x)
;; two of the errors that string->url can raise are
;; now contract violations instead of url-expcetion
;; structs. since only the url-exception? predicate
;; was exported, we just add this in to the predicate
;; to preserve backwards compatibility
(and (exn:fail:contract? x)
(regexp-match? #rx"^string->url:" (exn-message x)))))
(provide (struct-out url-exception))
(provide/contract (-url-exception? (any/c . -> . boolean?)))
|