/** * * Logs an error **/ public void logError (Throwable pRootCause) throws ELException { if (isLoggingError ()) { logError (null, pRootCause); } }
/** * * Logs a warning **/ public void logWarning (String pTemplate) throws ELException { if (isLoggingWarning ()) { logWarning (pTemplate, null); } }
if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.CANT_GET_INDEXED_VALUE_OF_NULL, getOperatorSymbol()); if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.CANT_GET_NULL_INDEX, getOperatorSymbol()); Integer indexObj = Coercions.coerceToInteger(indexVal, pLogger); if (indexObj == null) { if (pLogger.isLoggingError()) { pLogger.logError(Constants.BAD_INDEX_VALUE, getOperatorSymbol(), indexVal.getClass().getName()); return ((List) pValue).get(indexObj.intValue()); } catch (ArrayIndexOutOfBoundsException exc) { if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_LIST, exc, indexObj); if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_LIST, exc, indexObj); if (pLogger.isLoggingError()) { pLogger.logError(Constants.EXCEPTION_ACCESSING_LIST, exc, indexObj); return Array.get(pValue, indexObj.intValue()); } catch (ArrayIndexOutOfBoundsException exc) { if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_ARRAY, exc, indexObj); if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_ARRAY, exc, indexObj);
/** * * Logs a warning **/ public void logWarning (String pMessage, Throwable pRootCause) throws ELException { if (isLoggingWarning ()) { if (pMessage == null) { System.out.println (pRootCause); } else if (pRootCause == null) { System.out.println (pMessage); } else { System.out.println (pMessage + ": " + pRootCause); } } }
/** * * Logs an error **/ public void logError (String pMessage, Throwable pRootCause) throws ELException { if (isLoggingError ()) { if (pMessage == null) { throw new ELException (pRootCause); } else if (pRootCause == null) { throw new ELException (pMessage); } else { throw new ELException (pMessage, pRootCause); } } }
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;
if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.CANT_GET_INDEXED_VALUE_OF_NULL, getOperatorSymbol()); if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.CANT_GET_NULL_INDEX, getOperatorSymbol()); Integer indexObj = Coercions.coerceToInteger(indexVal, pLogger); if (indexObj == null) { if (pLogger.isLoggingError()) { pLogger.logError(Constants.BAD_INDEX_VALUE, getOperatorSymbol(), indexVal.getClass().getName()); return ((List) pValue).get(indexObj.intValue()); } catch (ArrayIndexOutOfBoundsException exc) { if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_LIST, exc, indexObj); if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_LIST, exc, indexObj); if (pLogger.isLoggingError()) { pLogger.logError(Constants.EXCEPTION_ACCESSING_LIST, exc, indexObj); return Array.get(pValue, indexObj.intValue()); } catch (ArrayIndexOutOfBoundsException exc) { if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_ARRAY, exc, indexObj); if (pLogger.isLoggingWarning()) { pLogger.logWarning(Constants.EXCEPTION_ACCESSING_ARRAY, exc, indexObj);
/** * * Logs a warning **/ public void logWarning (String pMessage, Throwable pRootCause) throws ELException { if (isLoggingWarning ()) { if (pMessage == null) { System.out.println (pRootCause); } else if (pRootCause == null) { System.out.println (pMessage); } else { System.out.println (pMessage + ": " + pRootCause); } } }
/** * * Logs an error **/ public void logError (String pMessage, Throwable pRootCause) throws ELException { if (isLoggingError ()) { if (pMessage == null) { throw new ELException (pRootCause); } else if (pRootCause == null) { throw new ELException (pMessage); } else { throw new ELException (pMessage, pRootCause); } } }
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;
if (isLoggingWarning ()) { logWarning (MessageFormat.format (pTemplate, if (isLoggingWarning ()) { logWarning (MessageFormat.format (pTemplate, if (isLoggingWarning ()) { logWarning (MessageFormat.format (pTemplate, if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, if (isLoggingError ()) { logError (MessageFormat.format (pTemplate,
/** * * Logs an error **/ public void logError (String pTemplate) throws ELException { if (isLoggingError ()) { logError (pTemplate, null); } }
/** * * Logs a warning **/ public void logWarning (Throwable pRootCause) throws ELException { if (isLoggingWarning ()) { logWarning (null, pRootCause); } }
if (isLoggingWarning ()) { logWarning (MessageFormat.format (pTemplate, if (isLoggingWarning ()) { logWarning (MessageFormat.format (pTemplate, if (isLoggingWarning ()) { logWarning (MessageFormat.format (pTemplate, if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, if (isLoggingError ()) { logError (MessageFormat.format (pTemplate, if (isLoggingError ()) { logError (MessageFormat.format (pTemplate,
/** * * Logs an error **/ public void logError (Throwable pRootCause) throws ELException { if (isLoggingError ()) { logError (null, pRootCause); } }
/** * * Logs a warning **/ public void logWarning (Throwable pRootCause) throws ELException { if (isLoggingWarning ()) { logWarning (null, pRootCause); } }
if (pLogger.isLoggingWarning ()) { pLogger.logWarning (Constants.ARITH_OP_NULL, getOperatorSymbol ()); if (pLogger.isLoggingError ()) { pLogger.logError (Constants.ARITH_ERROR, getOperatorSymbol (),
/** * * Logs an error **/ public void logError (String pTemplate) throws ELException { if (isLoggingError ()) { logError (pTemplate, null); } }
/** * * Logs a warning **/ public void logWarning (String pTemplate) throws ELException { if (isLoggingWarning ()) { logWarning (pTemplate, null); } }
if (pLogger.isLoggingWarning ()) { pLogger.logWarning (Constants.ARITH_OP_NULL, getOperatorSymbol ()); if (pLogger.isLoggingError ()) { pLogger.logError (Constants.ARITH_ERROR, getOperatorSymbol (),