// SimpleException.cs using java.lang; sealed class SimpleException : Exception { public SimpleException() { } public string msg = "This is a simple exception"; internal /*native*/ void nativeMethod1() { throw new UnsatisfiedLinkError("JNI not supported"); } internal /*native*/ void nativeMethod2() /* throws java.io.IOException*/ { throw new UnsatisfiedLinkError("JNI not supported"); } }