How to use Exceptions to validate input data
File list:
Java2iunieCurs9
..............\build
..............\.....\classes
..............\.....\.......\exceptii
..............\.....\.......\........\Persoana.class
..............\.....\.......\........\PersoaneGUI$1.class
..............\.....\.......\........\PersoaneGUI$2.class
..............\.....\.......\........\PersoaneGUI.class
..............\.....\.......\........\PersoaneGUI.form
..............\.....\.......\........\VarstaNegativaException.class
..............\.....\.......\fisiere
..............\.....\.......\.......\Fisiere$1.class
..............\.....\.......\.......\Fisiere$2.class
..............\.....\.......\.......\Fisiere.class
..............\.....\.......\.......\Serializare.class
..............\.....\.......\.......\Streamuri.class
..............\.....\.......\.netbeans_automatic_build
..............\.....\.......\.netbeans_update_resources
..............\.....\empty
..............\.....\generated-sources
..............\.....\.................\ap-source-output
..............\.....\built-jar.properties
..............\dist
..............\....\Java2iunieCurs9.jar
..............\....\README.TXT
..............\nbproject
..............\.........\private
..............\.........\.......\private.properties
..............\.........\.......\private.xml
..............\.........\build-impl.xml
..............\.........\genfiles.properties
..............\.........\project.properties
..............\.........\project.xml
..............\src
..............\...\exceptii
..............\...\........\Persoana.java
..............\...\........\PersoaneGUI.form
..............\...\........\PersoaneGUI.java
..............\...\........\VarstaNegativaException.java
..............\...\fisiere
..............\...\.......\Fisiere.java
..............\...\.......\Serializare.java
..............\...\.......\Streamuri.java
..............\build.xml
..............\manifest.mf