Package org.teiid.core

Examples of org.teiid.core.TeiidComponentException


        PlanExecutor executor = (PlanExecutor)this.resultsMap.get(resultName);
        if (executor == null) {
            if (this.parentContext != null) {
                return this.parentContext.getOutputElements(resultName);
            }
            throw new TeiidComponentException(QueryPlugin.Util.getString("results_not_found", resultName)); //$NON-NLS-1$
        }
        return executor.getOutputElements();       
    }
View Full Code Here


            // stack another time, so terminate.
            terminate = env.getProgramRecursionCount(this.getThenProgram()) >= this.recursionLimit;

            //handle the case of exception on recursion limit reached
            if (terminate && this.exceptionOnRecursionLimit){
                throw new TeiidComponentException("ERR.015.006.0039", QueryPlugin.Util.getString("ERR.015.006.0039")); //$NON-NLS-1$ //$NON-NLS-2$
            }
        }

        return !terminate;
  }
View Full Code Here

            case UP:
                LogManager.logTrace(org.teiid.logging.LogConstants.CTX_XML_PLAN, "UP in document"); //$NON-NLS-1$
                try {
                    doc.moveToParent();
                } catch (SAXException err) {
                    throw new TeiidComponentException(err, "Failed to move UP in document")//$NON-NLS-1$
                }
                break;
            case DOWN:
                LogManager.logTrace(org.teiid.logging.LogConstants.CTX_XML_PLAN, "LAST child in document"); //$NON-NLS-1$
                doc.moveToLastChild();
View Full Code Here

        if (t instanceof CommunicationException) {
          CommunicationException ce = (CommunicationException)t;
          t = null;
          throw ce;
        }
        TeiidComponentException e = new TeiidComponentException(t);
        t = null;
        throw e;
      }
      return ResultsFuture.NULL_FUTURE;
    }
View Full Code Here

 
  public void testExceptionConversionNoException() throws Exception {
       
    Method m = Foo.class.getMethod("somemethod", new Class[] {});
   
    Throwable t = ExceptionUtil.convertException(m, new TeiidComponentException());
   
    assertTrue(t instanceof TeiidRuntimeException);
  }
View Full Code Here

 
  public void testAdminExceptionConversion() throws Exception {
   
    Method m = Admin.class.getMethod("getCacheStats", new Class[] {String.class});
   
    Throwable t = ExceptionUtil.convertException(m, new TeiidComponentException());
   
    assertTrue(t instanceof AdminException);
  }
View Full Code Here

 
  public void testXATransactionExceptionConversion() throws Exception {
   
    Method m = DQP.class.getMethod("recover", new Class[] {Integer.TYPE});
   
    Throwable t = ExceptionUtil.convertException(m, new TeiidComponentException());
   
    assertTrue(t instanceof XATransactionException);
  }
View Full Code Here

          }
        }
        try {
                Thread.sleep(wait);
            } catch (InterruptedException err) {
                throw new TeiidComponentException(err);
            }
      }
  }
View Full Code Here

          throw (TeiidProcessingException)e;
        }
        if (e instanceof TeiidComponentException) {
          throw (TeiidComponentException)e;
        }
        throw new TeiidComponentException(e);
      }
    if(done) {
      closeProcessing();
    }
      if (result == null) {
View Full Code Here

          throw e;
        }
        try {
                Thread.sleep(wait);
            } catch (InterruptedException err) {
                throw new TeiidComponentException(err);
            }
      }
  }
View Full Code Here

TOP

Related Classes of org.teiid.core.TeiidComponentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.