declare namespace java {
    namespace lang {
        // @ts-ignore
         class OutOfMemoryError extends java.lang.VirtualMachineError {
            /**
             * Constructs an {@code OutOfMemoryError} with no detail message.
             */
            // @ts-ignore
            constructor()
            /**
             * Constructs an {@code OutOfMemoryError} with the specified
             * detail message.
             */
            // @ts-ignore
            constructor(s: string)
        }
    }
}
