Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-775

Smart search for exception cause

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • logback-classic

    Description

      There are some classes of exceptions which have their own stack of causes which can't be accessed via the getCause() method. For example, for SQLException one should call the getNextException() method instead.But Logback uses only getCause() method (see https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/spi/ThrowableProxy.java#l58).

      It would be nice to use special methods for such exceptions, like Apache's ExceptionUtils does (see http://commons.apache.org/lang/api-2.4/org/apache/commons/lang/exception/ExceptionUtils.html).

      Attachments

        Activity

          People

            logback-dev Logback dev list
            estroykov E. S.
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: