Examples of initCause()


Examples of com.sun.xml.wss.impl.WssSoapFaultException.initCause()

            QName faultCode,
            String faultstring,
            Throwable th) {
        WssSoapFaultException sfe =
                new WssSoapFaultException(faultCode, faultstring, null, null);
        sfe.initCause(th);
        return sfe;
    }

    private static Date getGMTDateWithSkewAdjusted(
            Calendar c, long maxClockSkew, boolean addSkew) {
View Full Code Here

Examples of com.zaranux.client.crypto.InvalidKeyException.initCause()

        } catch (InvalidAlgorithmParameterException iape) {
            // never thrown when null parameters are used;
            // but re-throw it just in case
            InvalidKeyException ike =
                new InvalidKeyException("Wrong parameters");
            ike.initCause(iape);
            throw ike;
        }
    }

    // see JCE spec
View Full Code Here

Examples of de.laures.cewolf.DatasetProduceException.initCause()

        } catch (SQLException e) {
            e.printStackTrace();
            DatasetProduceException dspe = new DatasetProduceException(
                    "Erro ao gerar os dados de pizza");
            dspe.initCause(e);
            throw dspe;
        }

    }
View Full Code Here

Examples of eu.admire.dispel.engine.CompilationException.initCause()

            LOG.debug("Compiling DISPEL for used object: " + object);
        }
        if (object.getDispel() == null)
        {
            CompilationException exc = new CompilationException();
            exc.initCause(new NoDispelException(object));
            throw exc;
        }
        DISPELCompiler compiler = new DISPELCompiler();
        DISPELGraphBuilder builder = new DISPELGraphBuilder(registry, optimiser);
           
View Full Code Here

Examples of eu.admire.dispel.parser.exception.TypeMismatchException.initCause()

            return mSType.cast(value);
        }
        catch (STypeMismatchException e)
        {
            TypeMismatchException ex = new TypeMismatchException(this, value);
            ex.initCause(e);
            throw ex;
        }
    }

    @Override
View Full Code Here

Examples of eu.admire.dispel.parser.exception.UnsupportedExpressionException.initCause()

            }
            catch (Exception e)
            {
                UnsupportedExpressionException wrapper =
                    new UnsupportedExpressionException(ast.toStringTree());
                wrapper.initCause(e);
                throw wrapper;
            }
        }
        else if (ast.getType() == DISPEL_v4Parser.FUNCTION_CALL)
        {
View Full Code Here

Examples of exceptions.AppException.initCause()

    static Logger log = LoggerFactory.getLogger(ExceptionFactory.class);

    public static AppException getNewAppException(Exception exception) {
        log.error(exception.getMessage(), exception);
        AppException app = new AppException();
        app.initCause(exception);
        return app;
    }
}
View Full Code Here

Examples of gov.nist.scap.cpe.CPEEvaluationException.initCause()

                    }
                }
              } catch ( Exception ex ) {
                log.error("could not process CPE dictionary file(s)", ex);
                  CPEEvaluationException ex2 = new CPEEvaluationException( ex.getLocalizedMessage() );
                  ex2.initCause(ex);
                  throw(ex2);
              }
          }
        } else {
          cpeResolver = null;
View Full Code Here

Examples of java.awt.FontFormatException.initCause()

            return new BDFFont(container);
        } catch (IOException e) {
            throw e;
        } catch (Exception e) {
            FontFormatException ffe = new FontFormatException("bad bdf format");
            ffe.initCause(e);
            throw ffe;
        }
    }
   
    /**
 
View Full Code Here

Examples of java.awt.HeadlessException.initCause()

        try {
            c = Class.forName("org.geotools.gui.swing.image.OperationTreeBrowser");
        } catch (ClassNotFoundException cause) {
            final HeadlessException e;
            e = new HeadlessException("The \"gt2-widgets-swing.jar\" file is required.");
            e.initCause(cause);
            throw e;
        }
        try {
            c.getMethod("show", new Class[] { RenderedImage.class }).invoke(null,
                    new Object[] { image });
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.