public static void handleError(String errorMessage,SimpleMethod method,Element element) throws ValidationException {
  ValidationException e=new ValidationException(errorMessage,method,element);
  if (strictOn()) {
    throw e;
  }
 else {
    Debug.logWarning(e.getMessage(),module);
  }
}

public static void handleError ( String errorMessage , SimpleMethod method , Element element ) throws ValidationException { ValidationException e = new ValidationException ( errorMessage , method , element ) ; if ( strictOn ( ) ) { throw e ; } else { Debug . logWarning ( e . getMessage ( ) , module ) ; } }
handles a mini - language validation error .
