DomainError.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 21848 8e7b5eba9f90
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:
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     1
"
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     2
 COPYRIGHT (c) 2001 by eXept Software AG
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     3
              All Rights Reserved
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     4
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     5
 This software is furnished under a license and may be used
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     6
 only in accordance with the terms of that license and with the
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     8
 be provided or otherwise made available to, or used by, any
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
     9
 other person.  No title to or ownership of the software is
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    10
 hereby transferred.
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    11
"
21848
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    12
"{ Package: 'stx:libbasic' }"
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    13
21848
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    14
"{ NameSpace: Smalltalk }"
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ArithmeticError subclass:#DomainError
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    20
	category:'Kernel-Exceptions-Errors'
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    23
!DomainError class methodsFor:'documentation'!
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    24
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    25
copyright
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    26
"
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    27
 COPYRIGHT (c) 2001 by eXept Software AG
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    28
              All Rights Reserved
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    29
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    30
 This software is furnished under a license and may be used
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    31
 only in accordance with the terms of that license and with the
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    33
 be provided or otherwise made available to, or used by, any
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    34
 other person.  No title to or ownership of the software is
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    35
 hereby transferred.
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    36
"
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    37
!
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    38
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    39
documentation
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    40
"
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    41
    Raised by certain mathematical functions when the function-args
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    42
    value is not within the allowed domain.
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    43
    For example, 
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    44
        arcSin receiver not in -1..1
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    45
    or
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    46
        log receiver <= 0
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    47
"
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
    48
! !
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
6690
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    50
!DomainError class methodsFor:'initialization'!
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    51
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    52
initialize
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    53
    NotifierString := 'domain error'.
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    54
! !
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    55
21848
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    56
!DomainError methodsFor:'default values'!
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    57
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    58
defaultResumeValue
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    59
    "the default answer, if no one handles the query and the exception is resumed.
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    60
     Redefined to return Nan instead of nil."
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    61
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    62
    ^ originator class NaN
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    63
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    64
    "Created: / 20-06-2017 / 12:02:19 / cg"
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    65
! !
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    66
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
!DomainError class methodsFor:'documentation'!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
version
21848
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    70
    ^ '$Header$'
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
! !
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    72
21848
8e7b5eba9f90 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 7586
diff changeset
    73
6690
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
    74
DomainError initialize!