declare namespace java {
    namespace net {
        // @ts-ignore
         class ConnectException extends java.net.SocketException {
            /**
             * Constructs a new ConnectException with the specified detail
             * message as to why the connect error occurred.
             * A detail message is a String that gives a specific
             * description of this error.
             */
            // @ts-ignore
            constructor(msg: string)
            /**
             * Construct a new ConnectException with no detailed message.
             */
            // @ts-ignore
            constructor()
        }
    }
}
