M
Marteno Rodia
Of course, I don't think it is ever possible, but let me begin from
the start...
I'm using in my program a method delivered to me (let's call it the
"super method") and it uses a few methods from its native packet (a
pretty long list of nested invocations). In some cases, an error
occurs and one of the methods invoked throws a new Error("message")
(not an Exception, but an Error).
I just happen to want to handle this error (it's a little strange,
however, desired in this case), but I encountered quite a big problem:
the try-catch I've put the "super method" in exits normally, without
going into the catch section...
I'm really confused, and I can see only 2 explanations:
1) There is another catch (on a different level of the call stack)
which I didn't notice and the error is handled silently there.
2) There is something I don't know about unchecked exceptions like my
Error class.
1') how to check where the exception/error is really handled? (I've
been looking into the code for hours...)
2') what is that I don't know?
3) is there any other explanation?
MR
the start...
I'm using in my program a method delivered to me (let's call it the
"super method") and it uses a few methods from its native packet (a
pretty long list of nested invocations). In some cases, an error
occurs and one of the methods invoked throws a new Error("message")
(not an Exception, but an Error).
I just happen to want to handle this error (it's a little strange,
however, desired in this case), but I encountered quite a big problem:
the try-catch I've put the "super method" in exits normally, without
going into the catch section...
I'm really confused, and I can see only 2 explanations:
1) There is another catch (on a different level of the call stack)
which I didn't notice and the error is handled silently there.
2) There is something I don't know about unchecked exceptions like my
Error class.
1') how to check where the exception/error is really handled? (I've
been looking into the code for hours...)
2') what is that I don't know?
3) is there any other explanation?
MR