How to know the name of the (parent) method that invoked another method
Hi,
I am working to build my own Exception.
If I have a method B that produces an exception, can I know the name of the method A that invoked method B, in order to trace it?
This is specially useful in utility classes that uses JDBC to get data.
Thanks very much,
Regards,
Lorenzo Jimenez
# 6
> I am working to build my own Exception.
>
> If I have a method B that produces an exception, can
> I know the name of the method A that invoked method
> B, in order to trace it?
>
You know that you don't have to add the stack trace to an exception yourself - right?
# 7
> > I am working to build my own Exception.
> >
> > If I have a method B that produces an exception,
> can
> > I know the name of the method A that invoked
> method
> > B, in order to trace it?
> >
>
>
> You know that you don't have to add the stack trace
> to an exception yourself - right?
another fair point! this is what comes of answering the subject line rather than the post.....
on the ball as usual, Joe