X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ferror.lisp;h=9086a9416d37acd7a7da466cc314999d5d34afa2;hb=7a2ee8c1aff0bdd286cf5d43ab40bff7fed86bea;hp=085264c3834dfea00ae6b849b621f16c5d72270a;hpb=e7ef1082bd3e7f3851de9d90c5dbddf226a71382;p=sbcl.git diff --git a/src/code/error.lisp b/src/code/error.lisp index 085264c..9086a94 100644 --- a/src/code/error.lisp +++ b/src/code/error.lisp @@ -51,9 +51,10 @@ (t (error 'simple-type-error :datum datum - :expected-type '(or symbol string) - :format-control "bad argument to ~S: ~S" - :format-arguments (list fun-name datum))))) + :expected-type '(or symbol string function) + :format-control "Condition designator ~s is not of type ~s." + :format-arguments (list datum + '(or symbol string function)))))) (define-condition layout-invalid (type-error) () @@ -116,10 +117,10 @@ (lambda (c s) (let ((stream (stream-error-stream c)) (code (character-encoding-error-code c))) - (format s "~@" - stream ':external-format (character-coding-error-external-format c) + stream code))))) (define-condition stream-decoding-error (stream-error character-decoding-error) () @@ -127,17 +128,17 @@ (lambda (c s) (let ((stream (stream-error-stream c)) (octets (character-decoding-error-octets c))) - (format s "~@" - stream ':external-format (character-coding-error-external-format c) + stream octets))))) (define-condition c-string-encoding-error (character-encoding-error) () (:report (lambda (c s) - (format s "~@" (character-coding-error-external-format c) (character-encoding-error-code c))))) @@ -146,7 +147,7 @@ () (:report (lambda (c s) - (format s "~@" (character-coding-error-external-format c) (character-decoding-error-octets c))))) @@ -164,6 +165,28 @@ calls, or a tail call that SBCL cannot or has not optimized away. PROCEED WITH CAUTION.")))) +(define-condition binding-stack-exhausted (storage-condition) + () + (:report + (lambda (condition stream) + (declare (ignore condition)) + (format stream + ;; no pretty-printing, because that would use a lot of stack. + "Binding stack exhausted. + +PROCEED WITH CAUTION.")))) + +(define-condition alien-stack-exhausted (storage-condition) + () + (:report + (lambda (condition stream) + (declare (ignore condition)) + (format stream + ;; no pretty-printing, because that would use a lot of stack. + "Alien stack exhausted. + +PROCEED WITH CAUTION.")))) + (define-condition heap-exhausted-error (storage-condition) () (:report