How do I use try-catch to validate input?

Printable View