com.ca.jcs.processor.script.rhino
Class RhinoExceptionUnwrapper

java.lang.Object
  extended by com.ca.jcs.processor.script.rhino.RhinoExceptionUnwrapper
All Implemented Interfaces:
ScriptPoolFactory.ExceptionUnwrapper

public class RhinoExceptionUnwrapper
extends Object
implements ScriptPoolFactory.ExceptionUnwrapper

Allows exceptions thrown by Rhino 1.6R3+ scripts (ie post the Rhino version bundled with JDK 6) to be unwrapped, for instance when a script throws an LdapNameNotFoundException.


Constructor Summary
RhinoExceptionUnwrapper()
           
 
Method Summary
 Exception unwrap(Exception e)
          Attempt to unwrap e, returning it unchanged if unwrapping is not possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoExceptionUnwrapper

public RhinoExceptionUnwrapper()
Method Detail

unwrap

public Exception unwrap(Exception e)
Attempt to unwrap e, returning it unchanged if unwrapping is not possible.

Specified by:
unwrap in interface ScriptPoolFactory.ExceptionUnwrapper


Created 2011-07-14 13:27 EST