Gerry Giese
Posts: 18
Nickname: gerryg
Registered: Feb, 2003
|
|
Re: Java Error Class
|
Posted: Feb 17, 2004 11:44 AM
|
|
The only thing you need to know is what twc sent you, and from that page, I'll quote:
"An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions."
If the guys who wrote Java think you should never try to catch a java.lang.Error, then don't! It's that simple!
I've been using Java for several years and am always looking at source code examples and miscellaneous project sources, and I don't recall anyone having used java.lang.Error in the normal course of programming. I think I saw it once or twice with some very very low-level systems/JVM programming, but that's such a specialized case that 99% of Java programmers won't EVER need to think about it.
Think about something else, like Excpetion and Throwable, and forget you ever heard about java.lang.Error.
|
|