2 import director_exception.*;
4 public class director_exception_runme {
8 System.loadLibrary("director_exception");
9 } catch (UnsatisfiedLinkError e) {
10 System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
15 public static void main(String argv[]) {
17 director_exception_MyFoo a = new director_exception_MyFoo();
18 Foo b = director_exception.launder(a);
22 throw new RuntimeException ( "Failed to catch exception" );
24 catch (UnsupportedOperationException e) {
29 class director_exception_MyFoo extends Foo {
30 public String ping() {
31 throw new UnsupportedOperationException("Foo::ping not implemented");