JuggerNET Runtime Library

JuggerNETException.ToJavaException Method 

Returns a jvalue containing a Java exception instance, suitable for throwing into the JVM. If the passed in exception is a proxy exception, we simply set it into the result. If the passed in exception is a .NET exception, we take as much information as possible from it and create a Java RuntimeException that we set into the result.

public static jvalue ToJavaException(
   Exception e
);

Parameters

e
the exception instance

Return Value

a jvalue containing a Java exception instance

See Also

JuggerNETException Class | Codemesh.JuggerNET Namespace