Tabnine Logo
EnsureExceptionHandling.chainHandlesThrowable
Code IndexAdd Tabnine to your IDE (free)

How to use
chainHandlesThrowable
method
in
ch.qos.logback.classic.pattern.EnsureExceptionHandling

Best Java code snippets using ch.qos.logback.classic.pattern.EnsureExceptionHandling.chainHandlesThrowable (Showing top 8 results out of 315)

origin: ch.qos.logback/logback-classic

if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = null;
origin: camunda/camunda-bpm-platform

/**
 * This implementation checks if any of the converters in the chain handles
 * exceptions. If not, then this method adds a
 * {@link ExtendedThrowableProxyConverter} instance to the end of the chain.
 * <p>
 * This allows appenders using this layout to output exception information
 * event if the user forgets to add %ex to the pattern. Note that the
 * appenders defined in the Core package are not aware of exceptions nor
 * LoggingEvents.
 * <p>
 * If for some reason the user wishes to NOT print exceptions, then she can
 * add %nopex to the pattern.
 * 
 * 
 */
public void process(Converter<ILoggingEvent> head) {
 if(head == null) {
  // this should never happen
  throw new IllegalArgumentException("cannot process empty chain");
 }
 if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = new ExtendedThrowableProxyConverter();
  tail.setNext(exConverter);
 }
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.classic

/**
 * This implementation checks if any of the converters in the chain handles
 * exceptions. If not, then this method adds a
 * {@link ExtendedThrowableProxyConverter} instance to the end of the chain.
 * <p>
 * This allows appenders using this layout to output exception information
 * event if the user forgets to add %ex to the pattern. Note that the
 * appenders defined in the Core package are not aware of exceptions nor
 * LoggingEvents.
 * <p>
 * If for some reason the user wishes to NOT print exceptions, then she can
 * add %nopex to the pattern.
 * 
 * 
 */
public void process(Converter<ILoggingEvent> head) {
 if(head == null) {
  // this should never happen
  throw new IllegalArgumentException("cannot process empty chain");
 }
 if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = new ExtendedThrowableProxyConverter();
  tail.setNext(exConverter);
 }
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * This implementation checks if any of the converters in the chain handles
 * exceptions. If not, then this method adds a
 * {@link ExtendedThrowableProxyConverter} instance to the end of the chain.
 * <p>
 * This allows appenders using this layout to output exception information
 * event if the user forgets to add %ex to the pattern. Note that the
 * appenders defined in the Core package are not aware of exceptions nor
 * LoggingEvents.
 * <p>
 * If for some reason the user wishes to NOT print exceptions, then she can
 * add %nopex to the pattern.
 * 
 * 
 */
public void process(Converter<ILoggingEvent> head) {
 if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = new ExtendedThrowableProxyConverter();
  if (tail == null) {
   head = exConverter;
  } else {
   tail.setNext(exConverter);
  }
 }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = null;
origin: tony19/logback-android

if (!chainHandlesThrowable(head)) {
 Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
 Converter<ILoggingEvent> exConverter = null;
origin: Nextdoor/bender

if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = null;
origin: io.virtdata/virtdata-lib-realer

if (!chainHandlesThrowable(head)) {
  Converter<ILoggingEvent> tail = ConverterUtil.findTail(head);
  Converter<ILoggingEvent> exConverter = null;
ch.qos.logback.classic.patternEnsureExceptionHandlingchainHandlesThrowable

Javadoc

This method computes whether a chain of converters handles exceptions or not.

Popular methods of EnsureExceptionHandling

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Top Vim plugins
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