private CommandContext getContext(LanguageObject expression) throws TeiidComponentException { if (context == null) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30328, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30328, expression, QueryPlugin.Util.getString("Evaluator.no_value"))); //$NON-NLS-1$ } return context; }
@Override public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException { if (count == Integer.MAX_VALUE) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31174, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31174)); } count++; }
private void checkStatus() throws TeiidComponentException { if (stopped) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30482, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30482, this.translatorName)); } }
public MappingSourceNode addSourceNode(MappingSourceNode elem) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30452, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30452)); } }
public void testMetaMatrixRuntimeExceptionWithMessage() { final TeiidRuntimeException err = new TeiidRuntimeException("Test"); //$NON-NLS-1$ assertNull(err.getCause()); assertNull(err.getCode()); assertEquals("Test", err.getMessage()); //$NON-NLS-1$ }
@Override public void visit(Enumeration expr) { throw new TeiidRuntimeException(new TeiidException("unsupported option"));//$NON-NLS-1$ }
public void testMetaMatrixRuntimeExceptionWithExceptionAndCodeAndMessage() { final String code = "1234"; //$NON-NLS-1$ final TeiidRuntimeException child = new TeiidRuntimeException(code, "Child"); //$NON-NLS-1$ final TeiidRuntimeException err = new TeiidRuntimeException(Event.Code, child,"Test"); //$NON-NLS-1$ assertSame(child, err.getCause()); assertEquals("Code", err.getCode()); //$NON-NLS-1$ assertEquals("Code Test", err.getMessage()); //$NON-NLS-1$ } }
public void testFailMetaMatrixRuntimeExceptionWithNullMessage() { Throwable e = null; try { new TeiidRuntimeException((String)null); // should throw NPE fail("Should not get here"); //$NON-NLS-1$ } catch ( Throwable ex ) { e = ex; } assertNotNull(e); }
private CommandContext getContext(LanguageObject expression) throws TeiidComponentException { if (context == null) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30328, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30328, expression, QueryPlugin.Util.getString("Evaluator.no_value"))); //$NON-NLS-1$ } return context; }
@Override public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException { if (count == Long.MAX_VALUE) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31174, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31174)); } count++; }
public void testMetaMatrixRuntimeExceptionWithCodeAndMessage() { final String code = "1234"; //$NON-NLS-1$ final TeiidRuntimeException err = new TeiidRuntimeException(code, "Test"); //$NON-NLS-1$ assertNull(err.getCause()); assertEquals(code, err.getCode()); assertEquals("1234 Test", err.getMessage()); //$NON-NLS-1$ }
private void checkStatus() throws TeiidComponentException { if (stopped) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30482, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30482, this.translatorName)); } }
private CommandContext getContext(LanguageObject expression) throws TeiidComponentException { if (context == null) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30328, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30328, expression, QueryPlugin.Util.getString("Evaluator.no_value"))); //$NON-NLS-1$ } return context; }
@Override public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException { if (count == Integer.MAX_VALUE) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31174, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31174)); } count++; }
public void testMetaMatrixRuntimeExceptionWithNullThrowable() { final TeiidRuntimeException err = new TeiidRuntimeException((Throwable)null); assertNull(err.getCause()); assertNull(err.getCode()); assertNull(err.getMessage()); }
private void checkStatus() throws TeiidComponentException { if (stopped) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30482, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30482, this.translatorName)); } }
@Override public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException { if (count == Integer.MAX_VALUE) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31174, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31174)); } count++; }
public static void checkExpandLevel(int expandLevel) throws TeiidProcessingException { if (expandLevel > MAX_EXPAND_LEVEL) { throw new TeiidProcessingException( ODataPlugin.Event.TEIID16059, ODataPlugin.Util.gs(ODataPlugin.Event.TEIID16059, MAX_EXPAND_LEVEL)); } }
@Override public void addInputDirect(List<?> tuple, CommandContext commandContext) throws TeiidComponentException, TeiidProcessingException { if (count == Long.MAX_VALUE) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31174, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31174)); } count++; }
@Override public void addInputDirect(Object input, List<?> tuple, CommandContext commandContext) throws TeiidProcessingException, TeiidComponentException { if (count == Integer.MAX_VALUE) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31174, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31174)); } count++; tiles = (Integer)input; if (tiles < 1) { throw new TeiidProcessingException(QueryPlugin.Event.TEIID31279, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31279)); } }