Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.InvalidOperationException


    @Override
    protected void doEvaluate(TExecutionContext context, LazyList<? extends ValueSource> inputs, ValueTarget output)
    {
        String ret = null;
        InvalidOperationException error = null;
           
        if ((error = (InvalidOperationException) context.preptimeObjectAt(ERROR_INDEX)) == null
                && (ret = (String)context.preptimeObjectAt(RET_INDEX)) == null)
        {
            Object objs[] = computeResult(inputs.get(0).getInt64(),
View Full Code Here


    }
   
    private static Object[] computeResult(long unix, String format, String tz)
    {
        String st = null;
        InvalidOperationException error = null;
       
        try
        {
            st = DateTimeField.getFormatted(new MutableDateTime(unix * 1000L, DateTimeZone.forID(tz)),
                                            format);
View Full Code Here

   
    @Override
    protected void doEvaluate(TExecutionContext context, LazyList<? extends ValueSource> inputs, ValueTarget output)
    {
        String ret = null;
        InvalidOperationException error = null;
       
        if ((error = (InvalidOperationException) context.preptimeObjectAt(ERROR_INDEX)) == null
                && (ret = (String)context.preptimeObjectAt(RET_INDEX)) == null)
        {
            Object objs[] = computeResult (getYMDHMS(inputs.get(0)),
View Full Code Here

    }
   
    private static Object[] computeResult(long ymd[], String format, String tz)
    {
        String st = null;
        InvalidOperationException error = null;
        if (ymd == null || MDateAndTime.isZeroDayMonth(ymd))
            error = new InvalidParameterValueException("Incorrect datetime value");
        else
            try
            {
View Full Code Here

        }
    }

    @Override
    public void finishPreptimePhase(TPreptimeContext context) {
        InvalidOperationException ioe = error();
        assert ioe != null : "no exception provided, but one was expected";
        throw ioe;
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.InvalidOperationException

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.