Custom error class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom error class

Mark Rizun
Hi guys!

I was wondering if there is a tutorial/chapter in books or smth to read about implementing custom error class properly. If not maybe there are some good examples already implemented, so I could learn by exploring them.
Thanks in advance!

Mark
Reply | Threaded
Open this post in threaded view
|

Re: Custom error class

Sven Van Caekenberghe-2
Hi Mark,

Deep into Pharo, http://rmod.lille.inria.fr/pbe2/ contains a chapter about exceptions.

Apart from that, the image is of course the best example ! Have a look at the hierarchy below Exception, and try to follow the references of each class. You should be able to find out how each exception gets signalled and handled.

Try NotFound for example.

Sven

> On 11 May 2015, at 16:13, Mark Rizun <[hidden email]> wrote:
>
> Hi guys!
>
> I was wondering if there is a tutorial/chapter in books or smth to read
> about implementing custom error class properly. If not maybe there are some
> good examples already implemented, so I could learn by exploring them.
> Thanks in advance!
>
> Mark
>
>
>
> --
> View this message in context: http://forum.world.st/Custom-error-class-tp4825693.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>