![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
[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 6:11 PM. Reason: Clarification |
|
|
|
|
|
#2 |
|
12 years old
Join Date: Nov 2007
Posts: 105
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
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 |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Jan 2008
Posts: 3
Rep Power: 0
![]() |
Re: [Catch block]
null_ptro, thanks alot Idea taken.
Be blessed |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|