This is a tiny bit off-topic, but TryCatch is so closely tied to Moose, this is 
probably as good a place to ask as any.

I am finally switching away from Error.pm and I am looking to see how to 
implement the things I am used to from Error.pm with TryCatch.  It looks to me, 
there is no magic that will tell me where in the code the error occurred - I 
need to implement it myself. 

Specifically, I should probably be implementing the throw function that figures 
it all out.

I would also need to overload "" to have the code die properly when the 
exception is not caught.

Since that's the part Error.pm is actually pretty good at, it's easy enough. 
It's just that I am a little confused that this doesn't exist with TryCatch (I 
looked into TryCatch::Error and it doesn't do anything but declare two 
attributes and has a minor downside that it doesn't install on my system!)

So really? I know some people here are using it. You guys just do it from 
scratch each time? Or am I missing something (as I suspect)

Thanks!
Kate

Reply via email to