public Class<?> getClassObject() { return (Class<?>) super.unwrap(); }
/** * This is set after the make method is called, so we can't do this eagerly. */ public Throwable getCause() { Object javaException = ScriptableObject.getProperty(NativeError.this, "javaException"); if (javaException instanceof NativeJavaObject) { NativeJavaObject njo = (NativeJavaObject) javaException; return (Throwable)njo.unwrap(); } return super.getCause(); } }