Examples of initCause()


Examples of com.sun.enterprise.deployment.backend.IASDeploymentException.initCause()

                throw (IASDeploymentException)e;
            }
            else {
                IASDeploymentException ias =
                    new IASDeploymentException(e.getLocalizedMessage());
                ias.initCause(e);
                throw ias;
            }
        }
    }
View Full Code Here

Examples of com.sun.enterprise.security.LoginException.initCause()

            }
            return connection;
        } catch(Exception ex) {
            String msg = sm.getString("jdbcrealm.cantconnect", dsJndi, dbUser);
            LoginException loginEx = new LoginException(msg);
            loginEx.initCause(ex);
            throw loginEx;
        }
    }
}
View Full Code Here

Examples of com.sun.enterprise.security.auth.login.common.LoginException.initCause()

            _logger.warning("Realm " + realmName + ": " + ex.toString());
        } catch (NoSuchUserException ex){
            _logger.warning("Realm " + realmName + ": " + ex.toString());
        } catch (NoSuchRealmException ex) {
            LoginException lex = new LoginException(ex.toString());
            lex.initCause(ex);
            throw lex;
        }
        setSecurityContext(username, s, realmName);
    }
View Full Code Here

Examples of com.sun.jersey.spi.service.ServiceConfigurationError.initCause()

                            return serviceClass.cast(nextClass.newInstance());
                        } catch (Exception ex) {
                            ServiceConfigurationError sce = new ServiceConfigurationError(serviceName + ": "
                                    + SpiMessages.PROVIDER_COULD_NOT_BE_CREATED(nextClass.getName(), serviceClass,
                                    ex.getLocalizedMessage()));
                            sce.initCause(ex);
                            throw sce;
                        }
                    }

                    @Override
View Full Code Here

Examples of com.sun.jmx.snmp.SnmpStatusException.initCause()

        // The index in the exception must correspond to the
        // SNMP index ...
        //
        final SnmpStatusException sse =
      new SnmpStatusException(x, index + 1);
        sse.initCause(x);
        throw sse;
    } else if ((type == SnmpDefinitions.pduWalkRequest)   ||
         (type == SnmpDefinitions.pduSetRequestPdu)) {
        final int status =
      SnmpRequestTree.mapSetException(x.getStatus(),ver);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.util.BrokerException.initCause()

                    logger.log(Logger.ERROR,
                           BrokerResources.E_INTERNAL_BROKER_ERROR,
                           "Could not decode xid from packet " +
                           PacketType.getString(msg.getPacketType())+":"+e);
                    BrokerException bex = new BrokerException(e.getMessage(), Status.BAD_REQUEST);
                    bex.initCause(e);
                    throw bex;
                }
            }
            long tid = ttid.longValue();
            if (tid != 0) {
View Full Code Here

Examples of com.sun.messaging.jmq.util.PHashMapLoadException.initCause()

                PHashMapLoadException le = new PHashMapLoadException(
                    "Failed to load client data [cdata=" + cdata + "]");
                le.setKey(key);
                le.setValue(value);
                le.setNextException(loadException);
                le.initCause(ex);
                loadException = le;
            }
        }

        if (loadException != null) {
View Full Code Here

Examples of com.sun.pdfview.PDFParseException.initCause()

        bimg = new BufferedImage(imageIcon.getIconWidth(), imageIcon.getIconHeight(), BufferedImage.TYPE_INT_RGB);
        bimg.getGraphics().drawImage(img, 0, 0 , null);
      }     
    } catch (Exception ex) {
      PDFParseException ex2 = new PDFParseException("DCTDecode failed");
      ex2.initCause(ex);
      throw ex2;
    }

    return bimg;
  }
View Full Code Here

Examples of com.sun.xml.internal.ws.developer.ServerSideException.initCause()

            for( int i=0; i<stackTrace.size(); i++ )
                ste[i] = stackTrace.get(i).toStackTraceElement();
            e.setStackTrace(ste);
        }
        if(cause!=null)
            e.initCause(cause.toException());
        return e;
    }

    /**
     * Captures one stack frame.
View Full Code Here

Examples of com.sun.xml.ws.developer.ServerSideException.initCause()

            for( int i=0; i<stackTrace.size(); i++ )
                ste[i] = stackTrace.get(i).toStackTraceElement();
            e.setStackTrace(ste);
        }
        if(cause!=null)
            e.initCause(cause.toException());
        return e;
    }

    /**
     * Captures one stack frame.
View Full Code Here
TOP
Copyright © 2015 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.