MCPcopy Create free account
hub / github.com/dynjs/dynjs / getCause

Method getCause

src/main/java/org/dynjs/exception/ThrowException.java:85–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 @Override
86 public synchronized Throwable getCause() {
87 Throwable cause = super.getCause();
88 if (cause != null) {
89 return cause;
90 }
91
92 if (this.value instanceof JSObject) {
93 Object jsCause = ((JSObject) this.value).get(this.context, "cause");
94 if (jsCause instanceof Throwable) {
95 return (Throwable) jsCause;
96 } else if (jsCause != null && jsCause != Types.UNDEFINED) {
97 return new ThrowException(this.context, jsCause);
98 }
99 }
100
101 return null;
102 }
103
104}

Callers 4

testStackWrappingMethod · 0.80
callMethod · 0.80
callMethod · 0.80

Calls 1

getMethod · 0.65