public static void printError(int errorCode,Throwable cause){
  if (errorCode == EC.GENERAL) {
    printError(errorCode,"",cause);
  }
 else {
    printError(errorCode,cause.getMessage(),cause,true);
  }
}

public static void printError ( int errorCode , Throwable cause ) { if ( errorCode == EC . GENERAL ) { printError ( errorCode , "" , cause ) ; } else { printError ( errorCode , cause . getMessage ( ) , cause , true ) ; } }
prints the error by code and reports the exception message . modified by ll on 7 april 2012 to produce more sensible ec . general error messages .
