declare namespace java {
    namespace rmi {
        // @ts-ignore
         class ServerRuntimeException extends java.rmi.RemoteException {
            /**
             * Constructs a <code>ServerRuntimeException</code> with the specified
             * detail message and nested exception.
             */
            // @ts-ignore
            constructor(s: string, ex: java.lang.Exception)
        }
    }
}
