Back: WriteStream-positioning Up: Base classes Forward: ZeroDivide class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.222 ZeroDivide

Defined in namespace Smalltalk
Superclass: ArithmeticError
Category: Language-Exceptions
A ZeroDivide exception is raised by numeric classes when a program tries to divide by zero. Information on the dividend is available to the handler.

1.222.1 ZeroDivide class: instance creation  (class)
1.222.2 ZeroDivide: accessing  (instance)
1.222.3 ZeroDivide: description  (instance)


1.222.1 ZeroDivide class: instance creation

dividend: aNumber
Create a new ZeroDivide object remembering that the dividend was aNumber.

new
Create a new ZeroDivide object; the dividend is conventionally set to zero.


1.222.2 ZeroDivide: accessing

dividend
Answer the number that was being divided by zero


1.222.3 ZeroDivide: description

description
Answer a textual description of the exception.



Back: ZeroDivide-accessing Up: ZeroDivide Forward: Class index   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html