Adding error file also

Error handling while Java app development.