The
Java APIdocumentation tells about all the possible exceptions thrown by methods. However these are all checked exceptions, means that they will be checked at compile time. However the rumtime exceptions such as NullPointerException should be handled separately, unfortunately these are not available in API documentation.
Originally posted by Tasty Bread Products Inc.:
How do you know which exception(s) your methods should throw? Is there documentation and/or guidelines for this available as part of Sun's SDK?
[ January 16, 2002: Message edited by: sreenivasa majji ]