/** * * 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); } } }
/** * Returns the root cause. * * @return the root cause of this exception */ public Throwable getRootCause() { return getCause(); }
/** * * 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); } } }
/** * Returns the root cause. * * @return the root cause of this exception */ public Throwable getRootCause() { return getCause(); }
throw new ELException (formatParseException (pExpressionString, exc)); throw new ELException (exc.getMessage ());
throw new ELException (formatParseException (pExpressionString, exc)); throw new ELException (exc.getMessage ());
throw new ELException("Error evaluating " + expression, exceptions.get(0)); throw new ELException("Error parsing " + expression + "; not a valid EL expression"); throw new ELException("Error evaluating " + expression + "; possible causes are logged at debug level");
throw new ELException (Constants.NULL_EXPRESSION_STRING);
throw new ELException (Constants.NULL_EXPRESSION_STRING);