private void initialize ( Chunk chunk ) { final String mName = "initialize" ; if ( logger . isLoggable ( Level . FINER ) ) logger . entering ( className , mName ) ; try { if ( chunk . getSkipLimit ( ) != null ) { _skipLimit = Integer . parseInt ( chunk . getSkipLimit ( ) ) ; if ( _skipLimit < 0 ) { throw new IllegalArgumentException ( "The skip-limit attribute on a chunk cannot be a negative value" ) ; } } } catch ( NumberFormatException nfe ) { throw new RuntimeException ( "NumberFormatException reading " + SKIP_COUNT , nfe ) ; } // Read the include/exclude exceptions. _skipIncludeExceptions = new HashSet < String > ( ) ; _skipExcludeExceptions = new HashSet < String > ( ) ; if ( chunk . getSkippableExceptionClasses ( ) != null ) { if ( chunk . getSkippableExceptionClasses ( ) . getIncludeList ( ) != null ) { List < ExceptionClassFilter . Include > includes = chunk . getSkippableExceptionClasses ( ) . getIncludeList ( ) ; for ( ExceptionClassFilter . Include include : includes ) { _skipIncludeExceptions . add ( include . getClazz ( ) . trim ( ) ) ; logger . finer ( "SKIPHANDLE: include: " + include . getClazz ( ) . trim ( ) ) ; } if ( _skipIncludeExceptions . size ( ) == 0 ) { logger . finer ( "SKIPHANDLE: include element not present" ) ; } } } if ( chunk . getSkippableExceptionClasses ( ) != null ) { if ( chunk . getSkippableExceptionClasses ( ) . getExcludeList ( ) != null ) { List < ExceptionClassFilter . Exclude > excludes = chunk . getSkippableExceptionClasses ( ) . getExcludeList ( ) ; for ( ExceptionClassFilter . Exclude exclude : excludes ) { _skipExcludeExceptions . add ( exclude . getClazz ( ) . trim ( ) ) ; logger . finer ( "SKIPHANDLE: exclude: " + exclude . getClazz ( ) . trim ( ) ) ; } if ( _skipExcludeExceptions . size ( ) == 0 ) { logger . finer ( "SKIPHANDLE: exclude element not present" ) ; } } } // Create the ExceptionMatcher Object excMatcher = new ExceptionMatcher ( _skipIncludeExceptions , _skipExcludeExceptions ) ; if ( logger . isLoggable ( Level . FINE ) ) logger . logp ( Level . FINE , className , mName , "added include exception " + _skipIncludeExceptions + "; added exclude exception " + _skipExcludeExceptions ) ; if ( logger . isLoggable ( Level . FINER ) ) logger . exiting ( className , mName , this . toString ( ) ) ; }
Read the skip exception lists from the BDS props .