Examples of initCause()


Examples of net.sourceforge.processdash.net.http.TinyCGIException.initCause()

            return result;

        } catch (Throwable t) {
            t.printStackTrace();
            TinyCGIException e = new TinyCGIException(500, "Internal Error");
            e.initCause(t);
            throw e;
        }
    }

View Full Code Here

Examples of nu.xom.ParsingException.initCause()

       
        ParsingException ex = new ParsingException(null, null);
        assertNull(ex.getCause());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException result) {
            // success  
        }
View Full Code Here

Examples of nu.xom.ValidityException.initCause()

        assertNull(ex.getMessage());
        assertEquals(-1, ex.getLineNumber());
        assertEquals(-1, ex.getColumnNumber());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException result) {
            // success  
        }
View Full Code Here

Examples of nu.xom.XPathException.initCause()

       
        XPathException ex = new XPathException(null, null);
        assertNull(ex.getCause());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException success) {
            assertNotNull(success.getMessage());  
        }
View Full Code Here

Examples of nu.xom.canonical.CanonicalizationException.initCause()

        CanonicalizationException ex = new CanonicalizationException(null);
        ex.initCause(null);
        assertNull(ex.getCause());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException success) {
            assertNotNull(success.getMessage());
        }
View Full Code Here

Examples of nu.xom.xinclude.XIncludeException.initCause()

        XIncludeException ex
          = new XIncludeException("message", (Exception) null);
        assertNull(ex.getCause());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException result) {
            // success  
        }
View Full Code Here

Examples of nu.xom.xslt.XSLException.initCause()

       
        XSLException ex = new XSLException(null, null);
        assertNull(ex.getCause());
       
        try {
            ex.initCause(new Exception());
            fail("Reinitialized cause over null");  
        }
        catch (IllegalStateException success) {
            assertNotNull(success.getMessage());
        }
View Full Code Here

Examples of org.antlr.v4.runtime.RecognitionException.initCause()

        + getTokenErrorDisplay(e.getOffendingToken())
        + " expecting one of "
        + e.getExpectedTokens().toString(recognizer.getTokenNames());
    RecognitionException ex = new RecognitionException(msg, recognizer,
        recognizer.getInputStream(), recognizer.getContext());
    ex.initCause(e);
    throw ex;
  }

  @Override
  protected void reportMissingToken(@NotNull Parser recognizer) {
View Full Code Here

Examples of org.apache.cassandra.config.ConfigurationException.initCause()

        }
        catch (AssertionError err)
        {
            // this happens when a user switches from OPP to RP.
            ConfigurationException ex = new ConfigurationException("Could not read system table. Did you change partitioners?");
            ex.initCause(err);
            throw ex;
        }
       
        SortedSet<ByteBuffer> cols = new TreeSet<ByteBuffer>(BytesType.instance);
        cols.add(PARTITIONER);
View Full Code Here

Examples of org.apache.cassandra.exceptions.ConfigurationException.initCause()

        }
        catch (AssertionError err)
        {
            // this happens when a user switches from OPP to RP.
            ConfigurationException ex = new ConfigurationException("Could not read system table!");
            ex.initCause(err);
            throw ex;
        }
        ColumnFamilyStore cfs = table.getColumnFamilyStore(LOCAL_CF);

        String req = "SELECT cluster_name FROM system.%s WHERE key='%s'";
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.