[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Exception handling issue..
From: |
Rick Flower |
Subject: |
[Help-smalltalk] Exception handling issue.. |
Date: |
Thu, 01 Nov 2012 09:42:54 -0700 |
User-agent: |
Apple Webmail/0.6 |
Ok.. So I've got 3.2.4 install but I also saw this issue with 3.2 as
well..
I have defined an exception class as follows :
Error subclass: MissingRequiredXMLDescriptorFile [
MissingRequiredXMLDescriptorFile class >> signal: aMessage [
^self new signal: aMessage
]
]
I then have some code elsewhere that throws the exception :
areXMLDescriptionFilesPresent [
MissingRequiredXMLDescriptorFile signal: 'Foo!!!'
]
and try to catch it with the following :
[ sdf areXMLDescriptionFilesPresent ]
on: MissingRequiredXMLDescriptorFile
do: [:ex | Transcript show: ex messageText. ObjectMemory quit: 1].
However, I get the following backtrace...
Object: nil error: did not understand #goodness:
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #goodness:
(SysExcept.st:1407)
optimized [] in BlockClosure class>>exceptionHandlerSearchBlock
(BlkClosure.st:16)
[] in
SoftwareDevelopmentFolder.MissingRequiredXMLDescriptorFile(Exception)>>instantiateNextHandlerFrom:
(ExcHandling.st:340)
MethodContext(ContextPart)>>scanBacktraceForAttribute:do:
(ContextPart.st:449)
SoftwareDevelopmentFolder.MissingRequiredXMLDescriptorFile(Exception)>>instantiateNextHandlerFrom:
(ExcHandling.st:342)
SoftwareDevelopmentFolder.MissingRequiredXMLDescriptorFile(Exception)>>signal
(ExcHandling.st:254)
SoftwareDevelopmentFolder.MissingRequiredXMLDescriptorFile(Exception)>>signal:
(ExcHandling.st:264)
SoftwareDevelopmentFolder.MissingRequiredXMLDescriptorFile
class>>signal:
(../../../../../home/rflower/gst/share/smalltalk/site-packages/SDFItemBase.st:9)
SoftwareDevelopmentFolder.SDF>>areXMLDescriptionFilesPresent
(../../../../../home/rflower/gst/share/smalltalk/site-packages/SDF.st:32)
optimized [] in UndefinedObject>>executeStatements
(../../../gst/share/smalltalk/site-packages/BuildSDF.st:59)
BlockClosure>>on:do: (BlkClosure.st:193)
optimized [] in UndefinedObject>>executeStatements
(../../../gst/share/smalltalk/site-packages/BuildSDF.st:64)
OrderedCollection>>do: (OrderColl.st:68)
UndefinedObject>>executeStatements
(../../../gst/share/smalltalk/site-packages/BuildSDF.st:46)
Now, IF the suggestion is to try the latest nightly 'stable-3.2'
snapshot
from github I downloaded that, installed the latest autoconf (2.69)
and the latest GNU m4 for use with autoconf (1.4.16) and ran "autoconf"
to build the configure script. That went ok but when issuing the
./configure
I get it complaining about GST_REVISION which did NOT get expanded so
it
caused some syntax errors in the configure script. So, I removed it
from the
configure.ac and after re-running autoconf I get :
configure: error: cannot find install-sh, install.sh, or shtool in
build-aux "."/build-aux
So -- if that is the method to travel to fix my bug above, what steps
are needed
to actually build a github snapshot?
Thx!!
- [Help-smalltalk] Exception handling issue..,
Rick Flower <=