Package java.net

Examples of java.net.MalformedURLException.initCause()


/* 65 */       return new FileSystemContext(fromVFS(root));
/*    */     }
/*    */     catch (URISyntaxException e)
/*    */     {
/* 69 */       ex = new MalformedURLException("non-URI compliant URI");
/* 70 */       ex.initCause(e);
/* 71 */     }throw ex;
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
View Full Code Here


     */
    private static void throwAsMalformedURLException( final String message, final Exception cause )
            throws MalformedURLException
    {
        final MalformedURLException exception = new MalformedURLException( message );
        exception.initCause( cause );
        throw exception;
    }

}
View Full Code Here

     */
    private static void throwAsMalformedURLException( final String message, final Exception cause )
        throws MalformedURLException
    {
        final MalformedURLException exception = new MalformedURLException( message );
        exception.initCause( cause );
        throw exception;
    }

}
View Full Code Here

      if (scheme.equals("http") || scheme.equals("https")) {
          try {
              return new URL(url.toURI().toASCIIString());
          } catch (URISyntaxException e) {
              MalformedURLException malformedURLException = new MalformedURLException(e.getMessage());
              malformedURLException.initCause(e);
              throw malformedURLException;
          }
       }
       return url;
  }
View Full Code Here

            "SAXBuilder.build(String) expects the String to be " +
            "a systemID, but in this instance it appears to be " +
            "actual XML data.");
        // include the original problem for accountability, and perhaps
        // a false positive.... though very unlikely
        mx.initCause(ioe);
        throw mx;
      }
      // it is likely not an XML document - re-throw the exception 
      throw ioe;
    } finally {
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.