Package java.io

Examples of java.io.IOException.initCause()


            } finally {
                method.setAccessible(false);
            }
        } catch (Exception e) {
            IOException ioe = new IOException("Cannot define class with name '" + className + "'.");
            ioe.initCause(e);
            throw ioe;
        }
        return clazz;
    }
View Full Code Here


         initPing();
      }
      catch (Exception e)
      {
         IOException ioe = new IOException("Unable to resolve pingDatabase method: " + e.getMessage());
         ioe.initCause(e);
         throw ioe;
      }
   }
}
View Full Code Here

                return readBitmapIconData(iconData, fIconInfo);
            }
            catch (ImageWriteException imageWriteException)
            {
                IOException ioe = new IOException();
                ioe.initCause(imageWriteException);
                throw ioe;
            }
        }
    }
View Full Code Here

         proxy = (SSLServerSocket) pf.create(sig, args);
      }
      catch (Exception e)
      {
         IOException ioe = new IOException("Failed to create SSLServerSocket proxy");
         ioe.initCause(e);
         throw ioe;
      }
      return proxy;
   }
View Full Code Here

         proxy = (SSLServerSocket) pf.create(sig, args);
      }
      catch (Exception e)
      {
         IOException ioe = new IOException("Failed to create SSLServerSocket proxy");
         ioe.initCause(e);
         throw ioe;
      }
      return proxy;
   }
View Full Code Here

//    return isNamespaceAware != null && isNamespaceAware.booleanValue();
  }
   
  private static void wrapException(Throwable t) throws IOException {
    IOException ex = new IOException();
    ex.initCause(t);
    throw ex;
  }
 
  /** thread-safe cache of XMLStreamWriter2.getEncoding() reflection methods */
  private static SoftReference ENCODING_METHODS = new SoftReference(null);
View Full Code Here

            out.close();
         }
         catch (IOException io1)
         {
            if (ioe != null)
               ioe = (IOException) ioe.initCause(io1);
            else
               ioe = io1;
         }
         try
         {
View Full Code Here

            in.close();
         }
         catch (IOException io1)
         {
            if (ioe != null)
               ioe = (IOException) ioe.initCause(io1);
            else
               ioe = io1;
         }
         if (ioe != null)
            throw ioe;
View Full Code Here

        seq.addModule(WebDAVAuthenticationModule.MODULE_NAME);
        try {
            seq.init(request.getSession());
        } catch (Exception e) {
            IOException ioe = new IOException("Failed to authentication scheme.");
            ioe.initCause(e);
            throw ioe;
        }
        seq.nextAuthenticationModule();
        request.getSession().setAttribute(Constants.AUTH_SENT, Boolean.TRUE);
        request.getSession().setAttribute(Constants.AUTH_SESSION, seq);
View Full Code Here

            // Mount may be null at root
            if(resource.getMount() != null) {
                resource.getMount().resourceAccessList(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

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.