}
public static RaiseException createNativeRaiseException(Ruby runtime, Throwable cause, Member target) {
NativeException nativeException = new NativeException(runtime, runtime.getClass(NativeException.CLASS_NAME), cause);
if (!runtime.getDebug().isTrue()) {
nativeException.trimStackTrace(target);
}
return new RaiseException(cause, nativeException);
}
private static String buildMessage(Throwable exception) {