public static EISException createException(Exception ex) { EISException exception = new EISException(ex); exception.setErrorCode(EIS_EXCEPTION); return exception; }
public static EISException createException(Exception ex) { EISException exception = new EISException(ex); exception.setErrorCode(EIS_EXCEPTION); return exception; }
public static EISException createException(Exception ex) { EISException exception = new EISException(ex); exception.setErrorCode(EIS_EXCEPTION); return exception; }
public static EISException createException(Object[] args, int errorCode) { EISException exception = new EISException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); exception.setErrorCode(errorCode); return exception; }
public static EISException createException(Object[] args, int errorCode) { EISException exception = new EISException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); exception.setErrorCode(errorCode); return exception; }
public static EISException createException(Object[] args, int errorCode) { EISException exception = new EISException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); exception.setErrorCode(errorCode); return exception; }
public static EISException incorrectLoginInstanceProvided(Class loginClass) { Object[] args = { loginClass }; EISException exception = new EISException(ExceptionMessageGenerator.buildMessage(EISException.class, INCORRECT_LOGIN_INSTANCE_PROVIDED, args)); exception.setErrorCode(INCORRECT_LOGIN_INSTANCE_PROVIDED); return exception; } }
public static EISException incorrectLoginInstanceProvided(Class loginClass) { Object[] args = { loginClass }; EISException exception = new EISException(ExceptionMessageGenerator.buildMessage(EISException.class, INCORRECT_LOGIN_INSTANCE_PROVIDED, args)); exception.setErrorCode(INCORRECT_LOGIN_INSTANCE_PROVIDED); return exception; } }
public static EISException incorrectLoginInstanceProvided(Class loginClass) { Object[] args = { loginClass }; EISException exception = new EISException(ExceptionMessageGenerator.buildMessage(EISException.class, INCORRECT_LOGIN_INSTANCE_PROVIDED, args)); exception.setErrorCode(INCORRECT_LOGIN_INSTANCE_PROVIDED); return exception; } }
public static EISException resourceException(Exception resourceException, EISAccessor accessor, AbstractSession session) { EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); exception.setAccessor(accessor); exception.setSession(session); return exception; }
public static EISException createResourceException(Object[] args, int errorCode) { ResourceException resourceException = new ResourceException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); return exception; }
public static EISException createResourceException(Object[] args, int errorCode) { ResourceException resourceException = new ResourceException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); return exception; }
public static EISException resourceException(Exception resourceException, EISAccessor accessor, AbstractSession session) { EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); exception.setAccessor(accessor); exception.setSession(session); return exception; }
throw new EISException(cantFind); throw new EISException(error);
public static EISException resourceException(Exception resourceException, EISAccessor accessor, AbstractSession session) { EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); exception.setAccessor(accessor); exception.setSession(session); return exception; }
public static EISException createResourceException(Object[] args, int errorCode) { ResourceException resourceException = new ResourceException(ExceptionMessageGenerator.buildMessage(EISException.class, errorCode, args)); EISException exception = new EISException(resourceException); exception.setErrorCode(RESOURCE_EXCEPTION); exception.setInternalException(resourceException); return exception; }
throw new EISException(cantFind); throw new EISException(error);
throw new EISException(cantFind); throw new EISException(error);
/** * Append the order by expression to the sort row. */ protected void appendExpressionToSortRow(Expression expression, AbstractRecord row, DatabaseQuery query) { if (expression.isFunctionExpression()) { FunctionExpression function = (FunctionExpression)expression; if (function.getOperator().getSelector() == ExpressionOperator.Ascending) { Object field = extractValueFromExpression(function.getChildren().get(0), query); row.put(field, 1); } else if (function.getOperator().getSelector() == ExpressionOperator.Descending) { Object field = extractValueFromExpression(function.getChildren().get(0), query); row.put(field, -1); } else { throw new EISException("Query too complex for Mongo translation, order by [" + expression + "] not supported in query: " + query); } } else { Object field = extractValueFromExpression(expression, query); row.put(field, 1); } }
Object value = extractValueFromExpression((Expression)field, readQuery); if (!(value instanceof DatabaseField)) { throw new EISException("Query too complex for Mongo translation, only field selects are supported in query: " + query); return interaction; throw new EISException("Query too complex for Mongo translation, only select queries are supported in query: " + query);