eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ZeroDivide':

Home

everywhere
www.exept.de
for:
[back]

Class: ZeroDivide


Inheritance:

   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

Description:


Raised when a division by zero is attempted.


Class protocol:

initialization
o  initialize


Instance protocol:

accessing
o  dividend
Return the number that was being divided by zero.


Examples:


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.
    ]


ST/X 6.1.1; WebServer 1.620 at exept:8081; Thu, 24 May 2012 05:09:02 GMT