Package org.apache.cassandra.exceptions

Examples of org.apache.cassandra.exceptions.RequestValidationException


    public void validate(ClientState state) throws RequestValidationException
    {
        ThriftValidation.validateColumnFamily(keyspace(), columnFamily());
        CFMetaData cfm = Schema.instance.getCFMetaData(keyspace(), columnFamily());
        if (cfm.getTriggerClasses() == null)
            throw new RequestValidationException(ExceptionCode.CONFIG_ERROR, "No triggers found") {};
        if (!TriggerOptions.hasTrigger(cfm, triggerName))
            throw new RequestValidationException(ExceptionCode.CONFIG_ERROR, "trigger: " + triggerName + ", not found") {};
    }
View Full Code Here


        {
            TriggerExecutor.instance.loadTriggerInstance(clazz);
        }
        catch (Exception ex)
        {
            throw new RequestValidationException(ExceptionCode.INVALID, "Trigger class: " + clazz + ", doesnt exist.", ex) {};
        }
    }
View Full Code Here

        {
            TriggerExecutor.instance.loadTriggerInstance(clazz);
        }
        catch (Exception ex)
        {
            throw new RequestValidationException(ExceptionCode.INVALID, "Trigger class: " + clazz + ", doesnt exist.", ex) {};
        }
    }
View Full Code Here

    public void validate(ClientState state) throws RequestValidationException
    {
        ThriftValidation.validateColumnFamily(keyspace(), columnFamily());
        CFMetaData cfm = Schema.instance.getCFMetaData(keyspace(), columnFamily());
        if (cfm.getTriggerClasses() == null)
            throw new RequestValidationException(ExceptionCode.CONFIG_ERROR, "No triggers found") {};
        if (!TriggerOptions.hasTrigger(cfm, triggerName))
            throw new RequestValidationException(ExceptionCode.CONFIG_ERROR, "trigger: " + triggerName + ", not found") {};
    }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.exceptions.RequestValidationException

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.