Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 2nd, 2008, 5:10 PM   #1
pricka
Newbie
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0 pricka is on a distinguished road
[Catch block]

Can any body explain to me why this code has the ending with e.getMassage? What does it mean and do "System.err.print("ClassNotFoundException: " + e.getMessage());

Last edited by pricka; Jan 2nd, 2008 at 5:11 PM. Reason: Clarification
pricka is offline   Reply With Quote
Old Jan 2nd, 2008, 5:51 PM   #2
null_ptr0
12 years old
 
Join Date: Nov 2007
Posts: 80
Rep Power: 1 null_ptr0 is on a distinguished road
Re: [Catch block]

e is probably an instance of a ClassNotFoundException, and getMessage() is a public member method of Throwable, and, seeing ClassNotFoundException originates from Throwable, you can access it.
__________________
iload_0 iconst_1 ishl or
iload_0 iconst_2 idiv or
iload_0 iconst_2 iconst_1 imul idiv
[1] & [2] use the smallest stack size
null_ptr0 is offline   Reply With Quote
Old Jan 2nd, 2008, 11:29 PM   #3
mrynit
Hobbyist Programmer
 
mrynit's Avatar
 
Join Date: Mar 2006
Location: WA, USA
Posts: 332
Rep Power: 3 mrynit is on a distinguished road
Send a message via AIM to mrynit Send a message via MSN to mrynit Send a message via Yahoo to mrynit Send a message via Skype™ to mrynit
Re: [Catch block]

You can see what the method does here http://java.sun.com/javase/6/docs/ap...ml#getMessage() and many other methods. The Java doc is a very good resource. It is used as a way to see what goes wrong. For example the error message could be writen to an error log for debugging.
__________________
i dont know much about programming but i try to help
mrynit is offline   Reply With Quote
Old Jan 3rd, 2008, 2:20 AM   #4
pricka
Newbie
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0 pricka is on a distinguished road
Re: [Catch block]

mrynit,
Thank you so much for the help I will try to see how far I can go with this, certainly am happy about your concern
pricka is offline   Reply With Quote
Old Jan 3rd, 2008, 2:22 AM   #5
pricka
Newbie
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0 pricka is on a distinguished road
Re: [Catch block]

null_ptro, thanks alot Idea taken.
Be blessed
pricka is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC