Package java.io

Examples of java.io.IOException.initCause()


            try {
                reader.readExternal(ext);
            } catch (ClassNotFoundException e) {
                IOException ex = new IOException("cannot instantiate class");
                ex.initCause(e);
                throw ex;
            }
            return;
        }
View Full Code Here


                destinationFactory = mgr.getDestinationFactoryForUri(address);
            }
            return destinationFactory.getDestination(ei);
        } catch (BusException e) {
            IOException ex = new IOException("Could not find destination factory for transport " + transId);
            ex.initCause(e);
            throw ex;
        }
    }

    public void createPortExtensors(EndpointInfo ei, Service service) {
View Full Code Here

                        writer.write(".");
                        writer.write(first);
                        writer.write(";");
                    } catch (Exception e) {
                        IOException ex = new IOException(e.getMessage());
                        ex.initCause(e);
                        throw ex;
                    }
                } else if (jdc.isAbstract()) {
                    writer.write("null;");
                } else {
View Full Code Here

                    if (ex instanceof IOException) {
                        throw (IOException) ex;
                    }
                    // use exception.initCause(ex) to be java 5 compatible
                    IOException ioException = new IOException("Error while initializing secure socket");
                    ioException.initCause(ex);
                    throw ioException;
                }
            }
        }
View Full Code Here

            List<String> cmd;
            try {
                cmd = getCommand();
            } catch (URISyntaxException e1) {
                IOException ex = new IOException();
                ex.initCause(e1);
                throw ex;
            }

            LOG.fine("CMD: " + cmd);
            if (debug) {
View Full Code Here

            byte[] result = getBytesFromString(resultStr);
            currentPos += result.length;
            return result;
        } catch (SqlException ex) {
            IOException ioEx = new IOException();
            ioEx.initCause(ex);
            throw ioEx;
        }
    }

    /**
 
View Full Code Here

                .blobGetBytes(blob.getLocator(), currentPos, actualLength);
            currentPos += result.length;
            return result;      
        } catch (SqlException ex) {
            IOException ioEx = new IOException();
            ioEx.initCause(ex);
            throw ioEx;
        }
    }
   
   
View Full Code Here

            if (ret > 0)
                pos += ret;
        }
        catch (SQLException e) {
            IOException ioe = new IOException (e.getMessage());
            ioe.initCause (e);
            throw ioe;
        }
    }
}
View Full Code Here

            char[] result = resultStr.toCharArray();
            currentPos += result.length;
            return result;
        } catch (SqlException ex) {
            IOException ioEx = new IOException();
            ioEx.initCause(ex);
            throw ioEx;
        }
    }
}
View Full Code Here

                try {
                    stream = clob.getInternalClob().getRawByteStream();
                }
                catch (SQLException e) {
                    IOException ioe = new IOException (e.getMessage());
                    ioe.initCause (e);
                    throw ioe;
                }
                init ((LOBInputStream) stream, pos);
                materialized = true;
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.