/** * * Logs an error **/ public void logError (String pTemplate) throws ELException { if (isLoggingError ()) { logError (pTemplate, null); } }
/** * * Logs an error **/ public void logError (Throwable pRootCause) throws ELException { if (isLoggingError ()) { logError (null, pRootCause); } }
/** * * Logs an error **/ public void logError (String pTemplate, Object pArg0) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, })); } }
/** * * Logs an error **/ public void logError (String pTemplate, Throwable pRootCause, Object pArg0) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, }), pRootCause); } }
/** * * Logs an error **/ public void logError (String pTemplate, Object pArg0, Object pArg1) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, })); } }
/** * * Logs an error **/ public void logError (String pTemplate, Object pArg0, Object pArg1, Object pArg2) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, "" + pArg2, })); } }
/** * * Logs an error **/ public void logError (String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, }), pRootCause); } }
/** * * Logs an error **/ public void logError (String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, "" + pArg2, "" + pArg3, })); } }
/** * * Logs an error **/ public void logError (String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, "" + pArg2, }), pRootCause); } }
/** * * Logs an error **/ public void logError (String pTemplate, Throwable pRootCause, Object pArg0, Object pArg1, Object pArg2, Object pArg3) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, "" + pArg2, "" + pArg3, }), pRootCause); } }
/** * * Logs an error **/ public void logError (String pTemplate, Object pArg0, Object pArg1, Object pArg2, Object pArg3, Object pArg4) throws ELException { if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, new Object [] { "" + pArg0, "" + pArg1, "" + pArg2, "" + pArg3, "" + pArg4, })); } }
/** * * Coerces the specified value to a String **/ public static String coerceToString (Object pValue, Logger pLogger) throws ELException { if (pValue == null) { return ""; } else if (pValue instanceof String) { return (String) pValue; } else { try { return pValue.toString (); } catch (Exception exc) { if (pLogger.isLoggingError ()) { pLogger.logError (Constants.TOSTRING_EXCEPTION, exc, pValue.getClass ().getName ()); } return ""; } } }
pLogger.logError(Constants.UNKNOWN_FUNCTION, functionName); pLogger.logError(Constants.UNKNOWN_FUNCTION, functionName); pLogger.logError(Constants.INAPPROPRIATE_FUNCTION_ARG_COUNT, functionName, new Integer(params.length), new Integer(argumentList.size())); return (target.invoke(null, arguments)); } catch (InvocationTargetException ex) { pLogger.logError(Constants.FUNCTION_INVOCATION_ERROR, ex.getTargetException(), functionName); return null; } catch (Exception ex) { pLogger.logError(Constants.FUNCTION_INVOCATION_ERROR, ex, functionName); return null;
pLogger.logError (Constants.UNARY_OP_BAD_TYPE, getOperatorSymbol (),
pLogger.logError (Constants.ARITH_ERROR, getOperatorSymbol (),