private StackTraceElement [ ] extractCallerStackTraceElements ( final int count ) { if ( stackTraceElementsFiller != null ) { try { StackTraceElement [ ] trace = new StackTraceElement [ count + 1 ] ; stackTraceElementsFiller . invoke ( null , Thread . currentThread ( ) , trace ) ; return trace ; } catch ( IllegalAccessException ex ) { InternalLogger . log ( Level . ERROR , ex , "Failed getting stack trace element from dalvik.system.VMStack" ) ; } catch ( InvocationTargetException ex ) { InternalLogger . log ( Level . ERROR , ex . getTargetException ( ) , "Failed getting stack trace element from dalvik.system.VMStack" ) ; } } return null ; }
Extracts a defined number of elements from stack trace .