On Feb 12, 9:54 pm, Rhino user <[EMAIL PROTECTED]> wrote:
> Hi ,
> I have a script like his
> try{
> var f = this.getOCGS();}
>
> catch(exeption e){
> logger.println(e);;
>
> }
>
> logger is equivalent of System.out in java.
> I have a scriptable object Doc which is the toplevel object referred
> to as this.
> The getOCGs() method throws a runtime exception . So I would expect
> that the system.out will print that error but instaed it throws an
> error saying that
> TypeError: Method "getOCGs" called on incompatible object.
> If I remove the try- catch block the right error gets thrown.
> what can be wrong?
> Thanks
This problem is really weird , could somebody pl. help.
Thanks
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino