Flashcards
Exceptions
Cards in this deck (3)
- 1Validating data
- 2Checked exceptions1. Declare or catch rule (throws or try-catch):
- usually not solvable in code
- show message to user
2. Solution:
- declare in business layers
- catch and declare in ui
- extends Exception
3. exception per layer
4. wrap thrown exceptions
- lot of plumbing work - 3Unchecked exceptions1. No need to declare
2. Remember to catch them eventually
3. extens RuntimeException
Information
- Description
- MSP IP Flashcards on Exceptions, created by Ruth Reynders on 02/06/2016.
- Created by
- Ruth Reynders
- Views
- 0
- Rating