ArithmeticError.st
author Claus Gittinger <cg@exept.de>
Wed, 05 Jun 2019 20:08:48 +0200
changeset 24257 3d3652e1f81c
parent 20446 a1de1ff6cddd
child 20578 39641ba8d6e0
permissions -rw-r--r--
#BUGFIX by cg class: LargeFloat NaN and Inf fixes comment/format in: #negative changed: #asFloat #asTrueFraction #positive
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20446
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
     1
"{ Encoding: utf8 }"
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
     2
8746
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     3
"
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     4
 COPYRIGHT (c) 2005 by eXept Software AG
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     5
              All Rights Reserved
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     6
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     7
 This software is furnished under a license and may be used
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     8
 only in accordance with the terms of that license and with the
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    10
 be provided or otherwise made available to, or used by, any
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    11
 other person.  No title to or ownership of the software is
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    12
 hereby transferred.
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    13
"
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libbasic' }"
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
20446
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    16
"{ NameSpace: Smalltalk }"
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    17
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    18
ExecutionError subclass:#ArithmeticError
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:''
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    22
	category:'Kernel-Exceptions-Errors'
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
8746
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    25
!ArithmeticError class methodsFor:'documentation'!
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    26
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    27
copyright
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    28
"
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    29
 COPYRIGHT (c) 2005 by eXept Software AG
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    30
              All Rights Reserved
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    31
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    32
 This software is furnished under a license and may be used
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    33
 only in accordance with the terms of that license and with the
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    35
 be provided or otherwise made available to, or used by, any
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    36
 other person.  No title to or ownership of the software is
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    37
 hereby transferred.
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    38
"
14873
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    39
!
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    40
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    41
documentation
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    42
"
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    43
     common superclass for all arithmetic errors.
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    44
"
8746
5d75855c2d07 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8483
diff changeset
    45
! !
6690
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    46
20446
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    47
!ArithmeticError class methodsFor:'testing'!
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    48
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    49
isProgramError
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    50
    "redefined in all exceptions which are programmer's errors,
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    51
     and which should probably not be ignored.
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    52
     I.e. a global error handler should reject and let a debugger get control."
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    53
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    54
    ^ true
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    55
! !
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    56
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
!ArithmeticError class methodsFor:'documentation'!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
version
20446
a1de1ff6cddd #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 14873
diff changeset
    60
    ^ '$Header$'
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
! !
14873
299531a3c932 added documentation
Claus Gittinger <cg@exept.de>
parents: 8746
diff changeset
    62