|
|
Class: ZeroDivide
Object
|
+--GenericException
|
+--Exception
|
+--Error
|
+--ProceedableError
|
+--ArithmeticError
|
+--DomainError
|
+--ZeroDivide
- Package:
- stx:libbasic
- Category:
- Kernel-Exceptions-Errors
- Version:
- rev:
1.7
date: 2006/12/15 11:02:36
- user: stefan
- file: ZeroDivide.st directory: libbasic
- module: stx stc-classLibrary: libbasic
Raised when a division by zero is attempted.
initialization
-
initialize
-
accessing
-
dividend
-
Return the number that was being divided by zero.
the following leads into a debugger:
|divisor|
divisor := 0.
Transcript showCR: ( 5 / divisor ).
|
the following does NOT lead into a debugger:
|divisor|
divisor := 0.
[
Transcript showCR: ( 5 / divisor ).
] on:ZeroDivide do:[
Transcript flash.
]
|
|