help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] catching exceptions...


From: Joachim Jaeckel
Subject: [Help-smalltalk] catching exceptions...
Date: Sun, 28 Jun 2009 17:09:00 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hello,

my question today is about catching exceptions.

I have an exception, which is subclassed from Notification, so if I'm not catching it, it's absolutely silent.

But if I want to catch it, how could I do printout the whole information (like the printStackTrace in Java...)?

...

And to make sure, I'm on the right way, my Exception is defined as:

Notification subclass: NotBase64Encoded [

    description [
        ^'String is not Base64 encoded'
    ]

]

and I throw it with:

^NotBase64Encoded new signal: ('String: ''%1'' is not base64 encoded' bindWith: aString)

Thanks in advance,
Joachim.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]