-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmsg00002.html
110 lines (103 loc) · 4.45 KB
/
msg00002.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!-- MHonArc v2.3.3 -->
<!--X-Subject: Re: Exceptions not being handled (or thrown correctly) -->
<!--X-From: Pat <[email protected]> -->
<!--X-Date: Wed, 8 Dec 1999 23:34:15 -0600 -->
<!--X-Message-Id: [email protected] -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: [email protected] -->
<!--X-Reference: [email protected] -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>Re: Exceptions not being handled (or thrown correctly)</TITLE>
<LINK REV="made" HREF="mailto:[email protected]">
</HEAD>
<BODY>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
<HR>
[<A HREF="msg00011.html">Date Prev</A>][<A HREF="msg00014.html">Date Next</A>][<A HREF="msg00011.html">Thread Prev</A>][<A HREF="msg00014.html">Thread Next</A>][<A HREF="maillist.html#00002">Date Index</A>][<A HREF="threads.html#00002">Thread Index</A>]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: Exceptions not being handled (or thrown correctly)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: "<A HREF="mailto:[email protected]">[email protected]</A>" <<A HREF="mailto:[email protected]">[email protected]</A>>,"<A HREF="mailto:[email protected]">[email protected]</A>" <<A HREF="mailto:[email protected]">[email protected]</A>></LI>
<LI><em>Subject</em>: Re: Exceptions not being handled (or thrown correctly)</LI>
<LI><em>From</em>: Pat <<A HREF="mailto:[email protected]">[email protected]</A>></LI>
<LI><em>Date</em>: Wed, 8 Dec 1999 23:34:15 -0600</LI>
<LI><em>Approved</em>: [email protected]</LI>
<LI><em>In-Reply-To</em>: <<A HREF="msg00011.html">[email protected]</A>>; from Ted Eiles on Tue, Dec 07, 1999 at 04:08:13PM -0500</LI>
<LI><em>Mail-Followup-To</em>: "[email protected]" <[email protected]>,"[email protected]" <[email protected]></LI>
<LI><em>References</em>: <<A HREF="msg00011.html">[email protected]</A>></LI>
<LI><em>Reply-To</em>: <A HREF="mailto:[email protected]">[email protected]</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Tue, Dec 07, 1999 at 04:08:13PM -0500, Ted Eiles wrote:
>
> I'm trying to catch an exception that I throw. It appears that the exception is created but my/maybe not thrown.
>
> I looked through the documentation and couldn't find anything on exception handling.
>
> bsh.TargetError: TargetError : throw new javax .naming .NamingException ( appName + " not found" ) ;
> Target exception: javax.naming.NamingException: biz not found
> at bsh.BSHThrowStatement.eval(BSHThrowStatement.java:31)
> at bsh.BSHBlock.eval(BSHBlock.java:29)
> at bsh.BSHIfStatement.eval(BSHIfStatement.java:28)
Hmm. It looks like your exception was thrown but it wasn't caught...
It's appearing as a TargetError (the internal wrapper for an exception).
Can you send the snippet including the try/catch?
Does this happen if you try a simple example as well?
Pat
</PRE>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00011" HREF="msg00011.html">Exceptions not being handled (or thrown correctly)</A></STRONG>
<UL><LI><EM>From:</EM> Ted Eiles <[email protected]></LI></UL></LI>
<LI><STRONG><A NAME="00011" HREF="msg00011.html">Exceptions not being handled (or thrown correctly)</A></STRONG>
<UL><LI><EM>From:</EM> Ted Eiles <[email protected]></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00011.html">Exceptions not being handled (or thrown correctly)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00014.html">RE: JDK tools</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00011.html">Exceptions not being handled (or thrown correctly)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00014.html">RE: JDK tools</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="maillist.html#00002"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="threads.html#00002"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</BODY>
</HTML>