Java - User Input Validation and Exception Handling
@MoosesValley - Software development, SciFi, Doggies, Animal Rescues, Quad Bikes, and more
This video demonstrates the best way to perform user input validation and exception handling, examines Java's Exception Class Hierarchy and Exception handling strategy, and answers the following questions:
- How do I validate user inputs ?
- Where should the code to validate inputs go ? In the GUI class ? In the data class ? Why ?
- Should errors be displayed in a Message dialog, in a Label, in the Console window, and/or somewhere else ?
- What about Exception Handling ?
- What are the advantages of using Exception Handling ? Why bother ?
- What is the best way to handle Exceptions ?
- Should I "use" an existing Exception class ?
- How do I create my own Exceptions ?
- Which part of the Exception hierarchy should my Exceptions extend ?
- How do I make it all work ?
Note: further improvements can be made, but this video shows enough for this "simple" GUI / data example. :)
Moose's Software Valley - Established July, 1996. https://rebrand.ly/MoosesSoftware ... https://www.youtube.com/watch?v=Yb0f_VMnvTo
2020-05-07
0.0 LBC
Copyrighted (contact publisher)
119356724 Bytes