public void storeStackForException(Throwable t,int currentStackFrame){
  if (!exceptionStack.containsKey(t)) {
    int[] s=new int[stackPointer + 1];
    System.arraycopy(stack,0,s,0,stackPointer);
    s[stackPointer]=currentStackFrame;
    exceptionStack.put(t,s);
  }
}

public void storeStackForException ( Throwable t , int currentStackFrame ) { if ( ! exceptionStack . containsKey ( t ) ) { int [ ] s = new int [ stackPointer + 1 ] ; System . arraycopy ( stack , 0 , s , 0 , stackPointer ) ; s [ stackPointer ] = currentStackFrame ; exceptionStack . put ( t , s ) ; } }
stores the stack for the given exception
