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

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

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

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

@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: com.netflix.hystrix/hystrix-javanica

LOGGER.error(FallbackErrorMessageBuilder.create()
    .append(commandAction, e).build());
throw new FallbackInvocationException(unwrapCause(e));
com.netflix.hystrix.contrib.javanica.exceptionExceptionUtilsunwrapCause

Javadoc

Gets actual exception if it's wrapped in CommandActionExecutionException or HystrixBadRequestException.

Popular methods of ExceptionUtils

  • propagateCause
    Retrieves cause exception and wraps to CommandActionExecutionException.

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFrame (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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