Package it.javalinux.wise.core.exceptions

Examples of it.javalinux.wise.core.exceptions.WiseConnectionException


                while (read != -1)
                {
                    read = isr.read(buf);
                    sw.write(buf);
                }
                throw new WiseConnectionException("Remote server's response is an error: " + sw.toString());
            }
            // saving file
            File file = new File(wiseProperties.getProperty("wise.tmpDir"), new StringBuffer("Wise").append(IDGenerator.nextVal()).append(".xml").toString());
            OutputStream fos = new BufferedOutputStream(new FileOutputStream(file));
            IOUtils.copyStream(fos, is);
            fos.close();
            is.close();
            filePath = file.getPath();
        }
        catch (WiseConnectionException wce)
        {
            throw wce;
        }
        catch (Exception e)
        {
            throw new WiseConnectionException("Wsdl download failed!", e);
        }
        return filePath;
    }
View Full Code Here

TOP

Related Classes of it.javalinux.wise.core.exceptions.WiseConnectionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.