public boolean handleError(DOMError error){
  errors.add(new DOMErrorImpl(error));
  return true;
}

public boolean handleError ( DOMError error ) { errors . add ( new DOMErrorImpl ( error ) ) ; return true ; }
implementation of domerrorhandler . handleerror that adds copy of error to list for later retrieval .
