Package org.teiid.client

Examples of org.teiid.client.ProcedureErrorInstructionException


        new NoRouteToHostException(
            "A test java.net.NoRouteToHostException"), //$NON-NLS-1$
        SQLStates.CONNECTION_EXCEPTION_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION);
    testCreateThrowable(new NullPointerException("A test NPE"), //$NON-NLS-1$
        SQLStates.DEFAULT);
    testCreateThrowable(new ProcedureErrorInstructionException(
        "A test SQL Procedure Error exception"), //$NON-NLS-1$
        SQLStates.VIRTUAL_PROCEDURE_ERROR);
    testCreateThrowable(new SocketTimeoutException(
        "A test socket timeout exception"), //$NON-NLS-1$
        SQLStates.CONNECTION_EXCEPTION_STALE_CONNECTION);
View Full Code Here


    public void process(ProcedurePlan env) throws TeiidComponentException,
        TeiidProcessingException {
      Object value = env.evaluateExpression(expression);
            LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP,
                            new Object[] {"Processing RaiseErrorInstruction with the value :", value}); //$NON-NLS-1$
        throw new ProcedureErrorInstructionException(ERROR_PREFIX + (value != null ? value.toString() : "")); //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of org.teiid.client.ProcedureErrorInstructionException

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.