Julho 06
Prof(s). Eduardo Bezerra & Ismael H. F. Santos                                                2
1.When deciding on checked exceptions vs. unchecked exceptions, ask yourself, "What action can the client code take when the exception occurs?"
n
n
n
Make it a checked exception
Client code will take some useful recovery action based on information in exception
Make it an unchecked exception
Client code cannot do anything
Exception type
Client's reaction when exception happens
Best Practices for Designing API (cont.)