is there any comman event or function which can detect error of the page at one place.

is there any comman event or function which can detect error of the page at one place.

hi,

     in asp.net i noticed that there is an event which can capture all errors at one place. u do not have to put try catch at all the places.

similarly if i am  using jquery , is there any event or functionality which can give me this facility.