iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/rmi/marshal/strategy/SkeletonStrategy.java
public void writeException(OutputStream out, Throwable e) {
        int len = excepWriters.length;
        for (int i = 0; i < len; i++) {
            if (excepWriters[i].getExceptionClass().isInstance(e)) {
                excepWriters[i].write(out, e);
                return;
            }
        }
        throw new UnknownException(e);
    }
public void writeException(OutputStream out, Throwable e) {
        int len = excepWriters.length;
        for (int i = 0; i < len; i++) {
            if (excepWriters[i].getExceptionClass().isInstance(e)) {
                excepWriters[i].write(out, e);
                return;
            }
        }
        throw new UnknownException(e);
    }
public void writeException ( OutputStream out , Throwable e ) { int len = excepWriters . length ; for ( int i = 0 ; i < len ; i ++ ) { if ( excepWriters [ i ] . getExceptionClass ( ) . isInstance ( e ) ) { excepWriters [ i ] . write ( out , e ) ; return ; } } throw new UnknownException ( e ) ; }
Marshals into an output stream an exception thrown by the method.

@param out a CDR output stream
@param e   the exception to be written.
Marshals into an output stream an exception thrown by the method .