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