public static void handlePrintConversionException(Object caller,Exception e,XMLSerializer serializer) throws SAXException {
  if (e instanceof SAXException)   throw (SAXException)e;
  String message=e.getMessage();
  if (message == null) {
    message=e.toString();
  }
  ValidationEvent ve=new PrintConversionEventImpl(ValidationEvent.ERROR,message,new ValidationEventLocatorImpl(caller),e);
  serializer.reportError(ve);
}

public static void handlePrintConversionException ( Object caller , Exception e , XMLSerializer serializer ) throws SAXException { if ( e instanceof SAXException ) throw ( SAXException ) e ; String message = e . getMessage ( ) ; if ( message == null ) { message = e . toString ( ) ; } ValidationEvent ve = new PrintConversionEventImpl ( ValidationEvent . ERROR , message , new ValidationEventLocatorImpl ( caller ) , e ) ; serializer . reportError ( ve ) ; }
reports a print conversion error while marshalling .
