Feel Free to contribute
To run the Script allow access rights by running chmod +x error_handling.sh
For the desired output the script expects a commandline input i.e ./error_handling.sh johndoe
exit 1 means failure.
exit 0 means success.
Happy Scripting !''!