Package org.apache.imperius.spl.parser.exceptions

Examples of org.apache.imperius.spl.parser.exceptions.SPLException


            if (!validate())
            {
                logger.severe(Thread.currentThread().getName()+" "+"validation error: " + className
                        + " has wrong data type passed in.");
               
                throw new SPLException(Messages.getString(
              "SPL_VALIDATION_ERROR_MSG", new Object[] { className }));
            }
        }
        logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "GetYear");
       
View Full Code Here


        }
        catch (Exception e)
        {
            logger.severe(Thread.currentThread().getName()+" "+"invalid expression");
           
            throw new SPLException(Messages.getString(
          "SPL_EVALUATION_ERROR_MSG", new Object[] { e
              .getLocalizedMessage() }));

        }
    }
View Full Code Here

            _dataType.setType(TypeConstants.intType);
            return true;
        }
        else
        {
            throw new SPLException(Messages.getString(
          "SPL_NOT_REQUIRED_EXP_EXCEPTION_MSG", new Object[] { eType }));

        }

      
View Full Code Here

            if (!validate())
            {
                logger.severe(Thread.currentThread().getName()+" "+"validation error: " + className
                        + " has wrong data type passed in.");
               
                throw new SPLException(Messages.getString(
              "SPL_VALIDATION_ERROR_MSG", new Object[] { className }));
            }
        }
        logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "GetMillisecond");
       
View Full Code Here

        }
        catch (Exception e)
        {
            logger.severe(Thread.currentThread().getName()+" "+"evaluation error: " + e.toString());
           
            throw new SPLException(Messages.getString(
          "SPL_EVALUATION_ERROR_MSG", new Object[] { e
              .getLocalizedMessage() }));

        }
    }
View Full Code Here

            _dataType.setType(TypeConstants.intType);
            return true;
        }
        else
        {
            throw new SPLException(Messages.getString(
          "SPL_NOT_REQUIRED_EXP_EXCEPTION_MSG", new Object[] { eType }));

        }

    
View Full Code Here

            if (!validate())
            {
                logger.severe(
                        "validation error: wrong data type passed in "
                        + this._dataType);
                throw new SPLException(
                        "validation error: wrong data type passed in "
                                + this._dataType);
            }
        }
       
View Full Code Here

       
        Object expResult = this._exp.evaluate();
        if (!(expResult instanceof java.util.List))
        {
            logger.severe(Thread.currentThread().getName()+" "+"result of expression is not of type List");
            throw new SPLException(
                    "result of expression is not of type List");
        }
        ArrayList resultArray = (ArrayList) expResult;
        //System.out.println("resultArray size " + resultArray.size()+ " to string " + resultArray.toString());
        // //System.out.println("resultArray is of type "+expression.getType());
        if ((resultArray != null) && (!resultArray.isEmpty()))
        {
            Integer size = new Integer(resultArray.size());
            //System.out.println("Size of collection is " + size);
            logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "evaluate");
           
            return size;
           
        }
        else
        {
            logger.severe(Thread.currentThread().getName()+" "+"result Array is empty");
            throw new SPLException("result Array is empty");
        }
       
    }
View Full Code Here

            if (!validate())
            {
                logger.severe(Thread.currentThread().getName()+" "+"validation error: " + className
                        + " has wrong data type passed in.");
               
                throw new SPLException(Messages.getString(
              "SPL_VALIDATION_ERROR_MSG", new Object[] { className }));
            }
        }
        logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "Log10");
       
View Full Code Here

        }
        catch (Exception e)
        {
            logger.severe(Thread.currentThread().getName()+" "+"evaluation error: " + e.toString());
           
            throw new SPLException(Messages.getString(
          "SPL_EVALUATION_ERROR_MSG", new Object[] { e
              .getLocalizedMessage() }));

        }
    }
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.exceptions.SPLException

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.