Examples of initCause()


Examples of javax.management.NotCompliantMBeanException.initCause()

                name = mbean.getMBeanInfo().getClassName();
            } catch (Exception e) {
                // Includes case where getMBeanInfo() returns null
                NotCompliantMBeanException ncmbe =
                    new NotCompliantMBeanException("Bad getMBeanInfo()");
                ncmbe.initCause(e);
                throw ncmbe;
            }
            if (name == null) {
                final String msg = "MBeanInfo has null class name";
                throw new NotCompliantMBeanException(msg);
View Full Code Here

Examples of javax.management.openmbean.OpenDataException.initCause()

                    final String msg =
                        "Cannot convert SortedMap with non-null comparator: " +
                        comparator;
                    IllegalArgumentException iae = new IllegalArgumentException(msg);
                    OpenDataException ode = new OpenDataException(msg);
                    ode.initCause(iae);
                    throw ode;
                }
            }
      final TabularType tabularType = (TabularType) getOpenType();
      final TabularData table = new TabularDataSupport(tabularType);
View Full Code Here

Examples of javax.media.j3d.IllegalRenderingStateException.initCause()

            }
          }
        };
    } catch (IllegalArgumentException ex) {
      IllegalRenderingStateException ex2 = new IllegalRenderingStateException("Can't create Canvas 3D");
      ex2.initCause(ex);
      throw ex2;
    }
  }
 
  /**
 
View Full Code Here

Examples of javax.naming.CommunicationException.initCause()

         next.addNamingListener(this, target, scope, l);
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("addNamingListener failed");
         ce.initCause(e);
      }
   }

   public void addNamingListener(String target, int scope, NamingListener l)
      throws NamingException
View Full Code Here

Examples of javax.naming.ConfigurationException.initCause()

        catch (URLSyntaxException urlse)
        {
            _logger.warn("Unable to create factory:" + urlse);

            ConfigurationException ex = new ConfigurationException("Failed to parse entry: " + urlse + " due to : " +  urlse.getMessage());
            ex.initCause(urlse);
            throw ex;
        }
    }

    /**
 
View Full Code Here

Examples of javax.naming.InvalidNameException.initCause()

                entries.add(nEntries, entry);
            }
        } catch (NamingException e) {
            InvalidNameException e2 = new InvalidNameException(
                                        e.getMessage());
            e2.initCause(e);
            throw e2;
        }
        sort(); // arrange entries for comparison
    }
View Full Code Here

Examples of javax.naming.NameNotFoundException.initCause()

                factory.setInterfaces(new Class[] { ClassUtils.resolveClassName(className, classLoader) });
                factory.afterPropertiesSet();
                return factory.getObject();
            } catch (org.springframework.osgi.service.ServiceUnavailableException e) {
                NameNotFoundException ex = new NameNotFoundException(e.getMessage());
                ex.initCause(e);
                throw ex;
            }
        }

    }
View Full Code Here

Examples of javax.naming.NamingException.initCause()

                    infosClassLoader.put(Thread.currentThread().getContextClassLoader(), info);
                }

            } catch (Exception e) {
                NamingException ne = new NamingException("Cannot get a remote ClassLoader");
                ne.initCause(e);
                throw ne;
            }
        }

        return info;
View Full Code Here

Examples of javax.net.ssl.SSLException.initCause()

                try {
                    handshake(nextFilter);
                } catch (SSLException ssle) {
                    SSLException newSSLE = new SSLHandshakeException(
                            "SSL handshake failed.");
                    newSSLE.initCause(ssle);
                    throw newSSLE;
                }
                if (getOutNetBuffer().hasRemaining()) {
                    if (SessionLog.isDebugEnabled(session)) {
                        SessionLog.debug(session, " write outNetBuffer2: "
View Full Code Here

Examples of javax.net.ssl.SSLHandshakeException.initCause()

                try {
                    handshake(nextFilter);
                } catch (SSLException ssle) {
                    SSLException newSSLE = new SSLHandshakeException(
                            "SSL handshake failed.");
                    newSSLE.initCause(ssle);
                    throw newSSLE;
                }
                if (getOutNetBuffer().hasRemaining()) {
                    if (SessionLog.isDebugEnabled(session)) {
                        SessionLog.debug(session, " write outNetBuffer2: "
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.