X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcondition.lisp;h=d7b2e4d3dc7aadde3420fac55283197ba76d9f67;hb=30c93105a8bce7b701a5043fb11254f6f1bdd6da;hp=07dca98cc947a2e3a35c30ae4006c0692af9e0dd;hpb=9d572e5dec980b0a9572c5a888986b4497e92a5c;p=sbcl.git diff --git a/src/code/condition.lisp b/src/code/condition.lisp index 07dca98..d7b2e4d 100644 --- a/src/code/condition.lisp +++ b/src/code/condition.lisp @@ -648,6 +648,11 @@ "end of file on ~S" (stream-error-stream condition))))) +(define-condition closed-stream-error (stream-error) () + (:report + (lambda (condition stream) + (format stream "~S is closed" (stream-error-stream condition))))) + (define-condition file-error (error) ((pathname :reader file-error-pathname :initarg :pathname)) (:report @@ -903,6 +908,9 @@ (define-condition simple-reference-error (reference-condition simple-error) ()) +(define-condition simple-reference-warning (reference-condition simple-warning) + ()) + (define-condition duplicate-definition (reference-condition warning) ((name :initarg :name :reader duplicate-definition-name)) (:report (lambda (c s) @@ -1276,8 +1284,9 @@ the values returned by the form as a list. No associated restarts.")) ;;; A knob for muffling warnings, mostly for use while loading files. (defvar *muffled-warnings* 'uninteresting-redefinition - "A type that ought to specify a subtype of WARNING. Whenever a warning -is signaled, if the warning if of this type, it will be muffled.") + "A type that ought to specify a subtype of WARNING. Whenever a +warning is signaled, if the warning if of this type and is not +handled by any other handler, it will be muffled.") ;;; Various STYLE-WARNING signaled in the system. ;; For the moment, we're only getting into the details for function