initial checkin
authorClaus Gittinger <cg@exept.de>
Tue, 17 Jun 2003 16:04:35 +0200
changeset 7401 a692ab84e03d
parent 7400 d4f8a683181c
child 7402 b9d45ce2463a
initial checkin
ImaginaryResultError.st
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ImaginaryResultError.st	Tue Jun 17 16:04:35 2003 +0200
@@ -0,0 +1,35 @@
+"{ Package: 'stx:libbasic' }"
+
+DomainError subclass:#ImaginaryResultError
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Kernel-Exceptions-Errors'
+!
+
+!ImaginaryResultError class methodsFor:'documentation'!
+
+documentation
+"
+    Raised by square root functions when the functions-arg is negative,
+    so that the result would be imaginary.
+    For example, 
+        -1 sqrt
+
+    Can be cought (see Complex >> trapImaginary) to automagically convert to Complex)
+"
+! !
+
+!ImaginaryResultError class methodsFor:'initialize'!
+
+initialize
+    NotifierString := 'imaginary result'.
+! !
+
+!ImaginaryResultError class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/libbasic/ImaginaryResultError.st,v 1.1 2003-06-17 14:04:35 cg Exp $'
+! !
+
+ImaginaryResultError initialize!