Package java.io

Examples of java.io.IOException.initCause()


        } catch (Exception e) {
          resource.getMount().resourceMoved(resource, dest, transaction, e);
          if(e instanceof LockedException)
            throw (LockedException) e;
            IOException ioe = new IOException(e.getMessage());
            ioe.initCause(e);
            throw ioe;
        } finally {
          VFSLockManager.getInstance().unlock(transaction.getSessionInfo(), handle);
        }
    }
View Full Code Here


            }
            resource.getMount().resourceUpload(resource, transaction, null);
        } catch (Exception e) {
            resource.getMount().resourceUpload(resource, transaction, e);
            IOException ioe = new IOException(e.getMessage());
            ioe.initCause(e);
            throw ioe;
        } finally {
          VFSLockManager.getInstance().unlock(transaction.getSessionInfo(), handle);
        }
    }
View Full Code Here

    } catch (Exception e) {
        if (action.equals("COPY")) {
            resource.getMount().resourceCopy(resource, dest, transaction, e);
        }
        IOException ioe = new IOException(e.getMessage());
        ioe.initCause(e);
        throw ioe;
    } finally {
      VFSLockManager.getInstance().unlock(transaction.getSessionInfo(), handle);
    }
   
View Full Code Here

            transaction.setStatus(201);
            resource.getMount().resourceCollectionCreated(resource, transaction, null);
        } catch (Exception e) {
            resource.getMount().resourceCollectionCreated(resource, transaction, e);
            IOException ioe = new IOException(e.getMessage());
            ioe.initCause(e);
            throw ioe;
        } finally {
          VFSLockManager.getInstance().unlock(transaction.getSessionInfo(), handle);
        }
    }
View Full Code Here

          } catch (Exception e) {
            if(resource.getMount() != null) {
              resource.getMount().resourceAccessList(resource, transaction, e);
            }
              IOException ioe = new IOException(e.getMessage());
              ioe.initCause(e);
              throw ioe;
          }
 
          int total = 0;
          try {
View Full Code Here

        } catch (InvalidLoginCredentialsException ilce) {
            // Incorrect details, try again
            throw new DAVAuthenticationRequiredException(expectingRealm);
        } catch (Exception e) {
            IOException ioe = new IOException("Failed to authenticate using scheme.");
            ioe.initCause(e);
            throw ioe;
        }
    }

    public HttpServletResponse getResponse() {
View Full Code Here

        } catch (Throwable e) {
          if (!GPLogger.log(e)) {
            e.printStackTrace(System.err);
          }
            IOException propagatedException  = new IOException("Failed to save the project file");
            propagatedException.initCause(e);
            throw propagatedException;
        }
    }

    private void saveHistory(TransformerHandler handler) throws SAXException, ParserConfigurationException, IOException {
View Full Code Here

                    
                     this.doc.addSubDocuments(theDocs);
                 }
             } catch (final Exception e) {
                 final IOException ex = new IOException("error parsing extracted content of " + super.filePath + ": " + e.getMessage());
                 ex.initCause(e);
                 throw ex;
             }
         }
        
        @Override
View Full Code Here

            database.logger.logWarningEvent(JVM_ERROR, e);

            IOException io = new IOException(e.getMessage());

            try {
                io.initCause(e);
            } catch (Throwable e1) {}

            throw io;
        }
    }
View Full Code Here

            database.logger.logWarningEvent("nio", e);

            IOException io = new IOException(e.getMessage());

            try {
                io.initCause(e);
            } catch (Throwable e1) {}

            throw io;
        } catch (Throwable e) {
            database.logger.logWarningEvent(JVM_ERROR, e);
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.