Changeset 9467
- Timestamp:
- May 13, 2008, 4:38:06 PM (17 years ago)
- Location:
- branches/working-0711/ccl
- Files:
-
- 2 edited
-
level-1/l1-error-system.lisp (modified) (7 diffs)
-
lib/macros.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0711/ccl/level-1/l1-error-system.lisp
r8853 r9467 60 60 (print-not-readable-stream c)))))) 61 61 62 (define-condition simple-warning (simple-condition warning) )62 (define-condition simple-warning (simple-condition warning) ()) 63 63 64 64 (define-condition compiler-warning (warning) … … 71 71 (:report report-compiler-warning)) 72 72 73 (define-condition style-warning (compiler-warning) )74 (define-condition undefined-function-reference (style-warning) )75 (define-condition macro-used-before-definition (compiler-warning) )76 (define-condition invalid-arguments (style-warning) )77 (define-condition invalid-arguments-global (style-warning) )78 79 (define-condition simple-error (simple-condition error) )80 81 (define-condition simple-storage-condition (simple-condition storage-condition) )82 (define-condition stack-overflow-condition (simple-storage-condition) )73 (define-condition style-warning (compiler-warning) ()) 74 (define-condition undefined-function-reference (style-warning) ()) 75 (define-condition macro-used-before-definition (compiler-warning) ()) 76 (define-condition invalid-arguments (style-warning) ()) 77 (define-condition invalid-arguments-global (style-warning) ()) 78 79 (define-condition simple-error (simple-condition error) ()) 80 81 (define-condition simple-storage-condition (simple-condition storage-condition) ()) 82 (define-condition stack-overflow-condition (simple-storage-condition) ()) 83 83 84 84 (define-condition invalid-memory-access (storage-condition) … … 176 176 (type-error-expected-type c))))) 177 177 178 (define-condition simple-type-error (simple-condition type-error) )179 180 181 182 (define-condition program-error (error) )178 (define-condition simple-type-error (simple-condition type-error) ()) 179 180 181 182 (define-condition program-error (error) ()) 183 183 (define-condition simple-program-error (simple-condition program-error) 184 184 ((context :initarg :context :reader simple-program-error-context :initform nil))) … … 191 191 :format-arguments args)))) 192 192 193 (define-condition simple-destructuring-error (simple-program-error) )193 (define-condition simple-destructuring-error (simple-program-error) ()) 194 194 195 195 (define-condition wrong-number-of-arguments (program-error) … … 199 199 (:report report-argument-mismatch)) 200 200 201 (define-condition too-many-arguments (wrong-number-of-arguments) )202 203 (define-condition too-few-arguments (wrong-number-of-arguments) )201 (define-condition too-many-arguments (wrong-number-of-arguments) ()) 202 203 (define-condition too-few-arguments (wrong-number-of-arguments) ()) 204 204 205 205 (defun report-argument-mismatch (c s) … … 242 242 (format nil "~a" c))))) 243 243 244 (define-condition control-error (error) )244 (define-condition control-error (error) ()) 245 245 246 246 (define-condition cant-throw-error (control-error) … … 479 479 operands)))))) 480 480 481 (define-condition division-by-zero (arithmetic-error) )481 (define-condition division-by-zero (arithmetic-error) ()) 482 482 483 (define-condition floating-point-underflow (arithmetic-error) )484 (define-condition floating-point-overflow (arithmetic-error) )485 (define-condition floating-point-inexact (arithmetic-error) )486 (define-condition floating-point-invalid-operation (arithmetic-error) )483 (define-condition floating-point-underflow (arithmetic-error) ()) 484 (define-condition floating-point-overflow (arithmetic-error) ()) 485 (define-condition floating-point-inexact (arithmetic-error) ()) 486 (define-condition floating-point-invalid-operation (arithmetic-error) ()) 487 487 488 488 (define-condition compiler-bug (simple-error) -
branches/working-0711/ccl/lib/macros.lisp
r9364 r9467 2060 2060 ;;; which tests *print-escape* ? Scary if so ... 2061 2061 2062 (defmacro define-condition (name (&rest supers) &optional ((&rest slots)) &body options)2062 (defmacro define-condition (name (&rest supers) (&rest slots) &body options) 2063 2063 "DEFINE-CONDITION Name (Parent-Type*) (Slot-Spec*) Option* 2064 2064 Define NAME as a condition type. This new type inherits slots and its
Note:
See TracChangeset
for help on using the changeset viewer.
