Examples of failure()


Examples of org.glassfish.api.ActionReport.failure()

            run();
            report.setMessage(Strings.get("restartReq"));
        } catch (TransactionFailure ex) {
            report.failure(context.getLogger(), Strings.get(transactionErrorMessageKey()), ex);
        } catch (SecureAdminCommandException ex) {
            report.failure(context.getLogger(), ex.getLocalizedMessage());
        }
    }
   
    /*
     * Exeutes the command with no action report.  Primarily useful from the
View Full Code Here

Examples of org.glassfish.api.ActionReport.failure()

        try {
            report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
            run();
            report.setMessage(Strings.get("restartReq"));
        } catch (TransactionFailure ex) {
            report.failure(context.getLogger(), Strings.get(transactionErrorMessageKey()), ex);
        } catch (SecureAdminCommandException ex) {
            report.failure(context.getLogger(), ex.getLocalizedMessage());
        }
    }
   
View Full Code Here

Examples of org.glassfish.api.ActionReport.failure()

            run();
            report.setMessage(Strings.get("restartReq"));
        } catch (TransactionFailure ex) {
            report.failure(context.getLogger(), Strings.get(transactionErrorMessageKey()), ex);
        } catch (SecureAdminCommandException ex) {
            report.failure(context.getLogger(), ex.getLocalizedMessage());
        }
    }
   
    /*
     * Executes the command with no action report.  Primarily useful from the
View Full Code Here

Examples of org.glassfish.api.ActionReport.failure()

        try {
            notifier.ensureAfterReported(ExtendedDeploymentContext.Phase.REPLICATION);
            logger.log(Level.INFO, "PostStateCommand: " + this.getClass().getName() + " finished successfully");
        } catch (Exception e) {
            report.failure(logger, e.getMessage());
            logger.log(Level.SEVERE, "Error during inner PostState: " + this.getClass().getName(), e);
        }
      } catch (Exception e) {
          logger.log(Level.SEVERE, "Error duirng outer PostState: " + this.getClass().getName(), e);
      }
View Full Code Here

Examples of org.glassfish.api.ActionReport.failure()

        // retrieve matched version(s) if exist
        List<String> matchedVersions = null;
        try {
            matchedVersions = versioningService.getMatchedVersions(name, target);
        } catch (VersioningException e) {
            report.failure(logger, e.getMessage());
            return;
        }

        // if matched list is empty and no VersioningException thrown,
        // this is an unversioned behavior and the given application is not registered
View Full Code Here

Examples of org.glassfish.jersey.client.spi.AsyncConnectorCallback.failure()

                try {
                    connector.apply(addUserAgent(Stages.process(request, requestProcessingRoot), connector.getName()), connectorCallback);
                } catch (AbortException aborted) {
                    connectorCallback.response(aborted.getAbortResponse());
                } catch (Throwable throwable) {
                    connectorCallback.failure(throwable);
                }
            }
        });
    }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.failure()

            getOrCreateRelationship(sourceNode, targetNode, Named.relation(type));

            tx.success();
        } catch(Exception e) {
            tx.failure();
            throw new RuntimeException(
                "Could not add relation of type " + type + " between " + source + " and " + target, e);
        } finally {
          tx.finish();
        }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.failure()

                }
            }

            tx.success();
        } catch(Exception e) {
            tx.failure();
            throw new RuntimeException(
                "Could not add relation of type " + type + " between " + source + " and " + target, e);
        } finally {
          tx.finish();
        }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.failure()

                    targets.add(target);
                }
            }
            tx.success();
        } catch(Exception e) {
            tx.failure();
            throw new RuntimeException(
                "Could not clean up relation of type " + type + " from " + source, e);
        } finally {
          tx.finish();
        }
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.failure()

    try {
      stack.next(method, object);
      if(! validator.hasErrors()) {
        tx.success();
      } else {
        tx.failure();
      }
    } finally {
      tx.finish();
    }
  }
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.