Tabnine Logo
ExceptionUtils
Code IndexAdd Tabnine to your IDE (free)

How to use
ExceptionUtils
in
com.netflix.hystrix.contrib.javanica.exception

Best Java code snippets using com.netflix.hystrix.contrib.javanica.exception.ExceptionUtils (Showing top 6 results out of 315)

origin: PipelineAI/pipeline

/**
 * Retrieves cause exception and wraps to {@link CommandActionExecutionException}.
 *
 * @param throwable the throwable
 */
private void propagateCause(Throwable throwable) throws CommandActionExecutionException {
  ExceptionUtils.propagateCause(throwable);
}
origin: PipelineAI/pipeline

@Override
@SuppressWarnings("unchecked")
protected List<Object> getFallback() {
  if (getFallbackAction() != null) {
    final CommandAction commandAction = getFallbackAction();
    try {
      return (List<Object>) process(new Action() {
        @Override
        Object execute() {
          MetaHolder metaHolder = commandAction.getMetaHolder();
          Object[] args = toArgs(getCollapsedRequests());
          args = createArgsForFallback(args, metaHolder, getExecutionException());
          return commandAction.executeWithArgs(commandAction.getMetaHolder().getFallbackExecutionType(), args);
        }
      });
    } catch (Throwable e) {
      LOGGER.error(FallbackErrorMessageBuilder.create()
          .append(commandAction, e).build());
      throw new FallbackInvocationException(unwrapCause(e));
    }
  } else {
    return super.getFallback();
  }
}
origin: PipelineAI/pipeline

LOGGER.error(FallbackErrorMessageBuilder.create()
    .append(commandAction, e).build());
throw new FallbackInvocationException(unwrapCause(e));
origin: com.netflix.hystrix/hystrix-javanica

LOGGER.error(FallbackErrorMessageBuilder.create()
    .append(commandAction, e).build());
throw new FallbackInvocationException(unwrapCause(e));
origin: com.netflix.hystrix/hystrix-javanica

/**
 * Retrieves cause exception and wraps to {@link CommandActionExecutionException}.
 *
 * @param throwable the throwable
 */
private void propagateCause(Throwable throwable) throws CommandActionExecutionException {
  ExceptionUtils.propagateCause(throwable);
}
origin: com.netflix.hystrix/hystrix-javanica

@Override
@SuppressWarnings("unchecked")
protected List<Object> getFallback() {
  if (getFallbackAction() != null) {
    final CommandAction commandAction = getFallbackAction();
    try {
      return (List<Object>) process(new Action() {
        @Override
        Object execute() {
          MetaHolder metaHolder = commandAction.getMetaHolder();
          Object[] args = toArgs(getCollapsedRequests());
          args = createArgsForFallback(args, metaHolder, getExecutionException());
          return commandAction.executeWithArgs(commandAction.getMetaHolder().getFallbackExecutionType(), args);
        }
      });
    } catch (Throwable e) {
      LOGGER.error(FallbackErrorMessageBuilder.create()
          .append(commandAction, e).build());
      throw new FallbackInvocationException(unwrapCause(e));
    }
  } else {
    return super.getFallback();
  }
}
com.netflix.hystrix.contrib.javanica.exceptionExceptionUtils

Javadoc

Util class to work with exceptions.

Most used methods

  • propagateCause
    Retrieves cause exception and wraps to CommandActionExecutionException.
  • unwrapCause
    Gets actual exception if it's wrapped in CommandActionExecutionException or HystrixBadRequestExcepti

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Reference (javax.naming)
  • JButton (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now