java exception handling is common as many other languages except that is allows certain extended capabilities
the most common is the try-catch block like of any other language
but i java you can make NEW exception according to your own conditions so that you can throw them at certain places
the subject is somewhat wide so better to read a document