Flashcards
Exceptions
Flashcards do conjunto (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
Informações
- Descrição
- MSP IP FlashCards sobre Exceptions, criado por Ruth Reynders em 02-06-2016.
- Criado por
- Ruth Reynders
- Visualizações
- 0
- Avaliação