Examples of initCause()


Examples of org.glassfish.api.invocation.InvocationException.initCause()

                try {
                    mc.dissociateConnections();
                } catch (ResourceException re) {
                    InvocationException ie = new InvocationException(
                            re.getMessage());
                    ie.initCause(re);
                    throw ie;
                } finally {
                    if (h.getResourceState().isBusy()) {
                        putbackDirectToPool(h, spec.getPoolInfo());
                    }
View Full Code Here

Examples of org.glassfish.deployment.common.DeploymentException.initCause()

            });
        } catch(DeploymentException dde) {
            throw dde;
        } catch(Exception e) {
            DeploymentException de = new DeploymentException(e.getMessage());
            de.initCause(e);
            throw de;
        }

        context.addModuleMetaData(appInfo);
        generateArtifacts(context);
View Full Code Here

Examples of org.hornetq.api.core.HornetQException.initCause()

         {
            if (requiresResponse)
            {
               log.warn("Sending unexpected exception to the client", t);
               HornetQException hqe = new HornetQException(HornetQException.INTERNAL_ERROR);
               hqe.initCause(t);
               response = new HornetQExceptionMessage(hqe);
            }
            else
            {
               log.error("Caught unexpected exception", t);
View Full Code Here

Examples of org.hornetq.api.core.HornetQInternalErrorException.initCause()

         {
            if (requiresResponse)
            {
               HornetQServerLogger.LOGGER.warn("Sending unexpected exception to the client", t);
               HornetQException hqe = new HornetQInternalErrorException();
               hqe.initCause(t);
               response = new HornetQExceptionMessage(hqe);
            }
            else
            {
               HornetQServerLogger.LOGGER.caughtException(t);
View Full Code Here

Examples of org.huihoo.workflow.client.ClientNotFoundException.initCause()

      }
      catch (Exception e)
      {
        ClientNotFoundException ne =
          new ClientNotFoundException("Cannot instantiate class: " + className);
        ne.initCause(e);
        throw ne;
      }
    }
    else
    {
View Full Code Here

Examples of org.jboss.errai.codegen.exception.UndefinedMethodException.initCause()

      if (method == null) {
        if (context.isPermissiveMode()) {
          final UndefinedMethodException udme = new UndefinedMethodException(statement.getType(), methodName, parameterTypes);
          GenUtil.rewriteBlameStackTrace(blame);
          udme.initCause(blame);
          udme.printStackTrace();

          dummyReturn(writer, context);
          return;
        }
View Full Code Here

Examples of org.jboss.jms.exception.MessagingTransactionRolledBackException.initCause()

      {
         // If a problem occurs during commit processing the session should be rolled back
         rollbackLocal(xid);
        
         JMSException e = new MessagingTransactionRolledBackException(t.getMessage());
         e.initCause(t);
         throw e;        
      }
   }
  
   public void rollbackLocal(Object xid) throws JMSException
View Full Code Here

Examples of org.jboss.jms.util.MessagingTransactionRolledBackException.initCause()

      {
         // If a problem occurs during commit processing the session should be rolled back
         rollbackLocal(xid);
        
         JMSException e = new MessagingTransactionRolledBackException(t.getMessage());
         e.initCause(t);
         throw e;        
      }
   }
  
   public void rollbackLocal(Object xid) throws JMSException
View Full Code Here

Examples of org.jclouds.http.HttpResponseException.initCause()

         return immediateFuture(storageStrategy.putBlob(containerName, blob));
      } catch (IOException e) {
         String message = e.getMessage();
         if (message != null && message.startsWith("MD5 hash code mismatch")) {
            HttpResponseException exception = returnResponseException(400);
            exception.initCause(e);
            throw exception;
         }
         logger.error(e, "An error occurred storing the new blob with name [%s] to container [%s].", blobKey,
               containerName);
         throw Throwables.propagate(e);
View Full Code Here

Examples of org.joda.time.IllegalFieldValueException.initCause()

            localInstant = iField.set(localInstant, value);
            long result = iZone.convertLocalToUTC(localInstant, false, instant);
            if (get(result) != value) {
                IllegalInstantException cause = new IllegalInstantException(localInstant,  iZone.getID());
                IllegalFieldValueException ex = new IllegalFieldValueException(iField.getType(), Integer.valueOf(value), cause.getMessage());
                ex.initCause(cause);
                throw ex;
            }
            return result;
        }
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.