InfiniteResultError.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 24248 68fc63e9cbef
permissions -rw-r--r--
#REFACTORING by exept class: Smalltalk class changed: #recursiveInstallAutoloadedClassesFrom:rememberIn:maxLevels:noAutoload:packageTop:showSplashInLevels: Transcript showCR:(... bindWith:...) -> Transcript showCR:... with:...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24248
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
     1
"{ Encoding: utf8 }"
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
     2
21957
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 2017 by eXept Software AG
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
              All Rights Reserved
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 This software is furnished under a license and may be used
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 only in accordance with the terms of that license and with the
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 be provided or otherwise made available to, or used by, any
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 other person.  No title to or ownership of the software is
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 hereby transferred.
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ Package: 'stx:libbasic' }"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
"{ NameSpace: Smalltalk }"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
DomainError subclass:#InfiniteResultError
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	instanceVariableNames:''
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	classVariableNames:''
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
	poolDictionaries:''
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
	category:'Kernel-Exceptions-Errors'
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
!InfiniteResultError class methodsFor:'documentation'!
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
copyright
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 COPYRIGHT (c) 2017 by eXept Software AG
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
              All Rights Reserved
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 This software is furnished under a license and may be used
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 only in accordance with the terms of that license and with the
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 be provided or otherwise made available to, or used by, any
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
 other person.  No title to or ownership of the software is
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 hereby transferred.
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
24248
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    43
    Raised by logarithm functions,
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    44
    when the function's-arg is not strictly positive,
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    45
    and the result would be infinite,
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    46
    or by the asFloat functions, when the receiver is out of range. 
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    47
21957
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    For example,
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
        0 ln
24248
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    50
    or,
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    51
        3.5e39 asShortFloat
21957
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
24248
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    53
    Can be caught (see Number >> trapInfinite:) to automagically convert to INF.
68fc63e9cbef #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21957
diff changeset
    54
    Can also be proceeded, to get an INF.
21957
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
! !
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
!InfiniteResultError class methodsFor:'initialize'!
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
initialize
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    NotifierString := 'infinite result'.
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "Modified: / 03-07-2017 / 15:42:00 / cg"
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
! !
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!InfiniteResultError class methodsFor:'documentation'!
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
version
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    ^ '$Header$'
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
!
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
version_CVS
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ^ '$Header$'
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
! !
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
36faf3a1900d initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
InfiniteResultError initialize!