Exception handling in PDF comparison

Please give some information about exception handling in PDF comparison