Package: org.grails.exceptions.reporting

## [Java] Class DefaultStackTraceFilterer

- org.grails.exceptions.reporting.DefaultStackTraceFilterer

- All Implemented Interfaces and Traits:
    StackTraceFilterer

      public class DefaultStackTraceFilterer
      extends java.lang.Object

  Default implementation of StackTraceFilterer.

  Authors:
    Graeme Rocher
  Since:
    2.0

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static org.apache.commons.logging.Log` | `STACK_LOG` |
    `static java.lang.String` | `STACK_LOG_NAME` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `DefaultStackTraceFilterer ()`
    `DefaultStackTraceFilterer (boolean shouldFilter)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `addInternalPackage(java.lang.String name)`
    `` | `java.lang.Throwable` | `filter(java.lang.Throwable source, boolean recursive)`
    `` | `java.lang.Throwable` | `filter(java.lang.Throwable source)`
    `` | `protected boolean` | `isApplicationClass(java.lang.String className)` Whether the given class name is an internal class and should be filtered
    `` | `void` | `setCutOffPackage(java.lang.String cutOffPackage)`
    `` | `void` | `setShouldFilter(boolean shouldFilter)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Field Detail

    - #### public static final org.apache.commons.logging.Log STACK_LOG

    - #### public static final java.lang.String STACK_LOG_NAME

  - ### Constructor Detail

    - #### public DefaultStackTraceFilterer()

    - #### public DefaultStackTraceFilterer(boolean shouldFilter)

  - ### Method Detail

    - #### public void addInternalPackage(java.lang.String name)

    - #### public java.lang.Throwable filter(java.lang.Throwable source, boolean recursive)

    - #### public java.lang.Throwable filter(java.lang.Throwable source)

    - #### protected boolean isApplicationClass(java.lang.String className)

      Whether the given class name is an internal class and should be filtered

      Parameters:
        `className` - The class name
      Returns:
        true if is internal

    - #### public void setCutOffPackage(java.lang.String cutOffPackage)

    - #### public void setShouldFilter(boolean shouldFilter)