7401
|
1 |
"{ Package: 'stx:libbasic' }"
|
|
2 |
|
|
3 |
DomainError subclass:#ImaginaryResultError
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Kernel-Exceptions-Errors'
|
|
8 |
!
|
|
9 |
|
|
10 |
!ImaginaryResultError class methodsFor:'documentation'!
|
|
11 |
|
|
12 |
documentation
|
|
13 |
"
|
|
14 |
Raised by square root functions when the functions-arg is negative,
|
|
15 |
so that the result would be imaginary.
|
|
16 |
For example,
|
|
17 |
-1 sqrt
|
|
18 |
|
|
19 |
Can be cought (see Complex >> trapImaginary) to automagically convert to Complex)
|
|
20 |
"
|
|
21 |
! !
|
|
22 |
|
|
23 |
!ImaginaryResultError class methodsFor:'initialize'!
|
|
24 |
|
|
25 |
initialize
|
|
26 |
NotifierString := 'imaginary result'.
|
|
27 |
! !
|
|
28 |
|
|
29 |
!ImaginaryResultError class methodsFor:'documentation'!
|
|
30 |
|
|
31 |
version
|
|
32 |
^ '$Header: /cvs/stx/stx/libbasic/ImaginaryResultError.st,v 1.1 2003-06-17 14:04:35 cg Exp $'
|
|
33 |
! !
|
|
34 |
|
|
35 |
ImaginaryResultError initialize!
|