Subj : Re: intercept error into java To : Danilo From : Igor Bukanov Date : Mon Sep 13 2004 04:06 pm Danilo wrote: > hi, i use rhino in my application java, > i use for listen event mouseclick of button: > > listener = java.awt.event.MouseListener({mouseClicked: test}) > btnNew.addMouseListener(listener) > listener = null > > function test(){ > //do anythink > } > > if function test generate error i want intercept it in java how i do? To get notification about the error you can use debug API in Rhino but you would not be able to alter or catch the exception. But you can add try/catch to the function itself and process the execption in JS. Regards, Igor .