Examples of TypeMismatchException


Examples of eu.admire.dispel.parser.exception.TypeMismatchException

        {
            mIndex = (Number)value;
        }
        else
        {
            throw new TypeMismatchException("Number", value);
        }
    }
View Full Code Here

Examples of eu.admire.dispel.parser.exception.TypeMismatchException

        {
            Object value =
                expression.evaluate(mExecutionState.getVariables());
            if (!(value instanceof Long))
            {
                throw new TypeMismatchException(
                    PrimitiveType.INTEGER, value);
            }
            mArrayIndices.add(((Number)value).intValue());
        }
View Full Code Here

Examples of eu.admire.dispel.parser.exception.TypeMismatchException

        {
            throw new UnknownTypeException(text);
        }
        if (!(var.getType() instanceof ProcessingElementTypeType))
        {
            throw new TypeMismatchException(
                    "ProcessingElementTypeType", var.getValue());
        }
        ProcessingElementTypeType type = (ProcessingElementTypeType)var.getType();
        SimpleProcessingElementDescriptor descriptor = null;
        if (type.getDescriptor() != null)
View Full Code Here

Examples of eu.admire.dispel.parser.exception.TypeMismatchException

            {
                Object value = expression.evaluate(
                    mExecutionState.getVariables());
                if (!(value instanceof Long))
                {
                    throw new TypeMismatchException(PrimitiveType.INTEGER, value);
                }
                mArrayIndices.add(((Number)value).intValue());
            }
        }
        break;
View Full Code Here

Examples of jfun.yan.TypeMismatchException

    else{
      return (Deserializer)this.convert(Deserializer.class, obj);
    }
  }
  private ConfigurationException mismatchType(Class type){
    return raise(new TypeMismatchException(Deserializer.class, type));
  }
View Full Code Here

Examples of jfun.yan.TypeMismatchException

          if(m instanceof Map){
            the_map = (Map)m;
            return performLookup(component_type, key, type);
          }
          else
            throw new TypeMismatchException(Map.class, m==null?null:m.getClass());
        }
      });
    }
  }
View Full Code Here

Examples of nexj.core.meta.TypeMismatchException

      {
         m_bConstant = false;

         if (!(type instanceof Primitive))
         {
            throw new TypeMismatchException(getSymbol());
         }
      }

      return this;
   }
View Full Code Here

Examples of org.apache.phoenix.schema.TypeMismatchException

    }

    public void addParam(BindParseNode bind, PDatum datum) throws SQLException {
        PDatum bindDatum = params[bind.getIndex()];
        if (bindDatum != null && bindDatum.getDataType() != null && !datum.getDataType().isCoercibleTo(bindDatum.getDataType())) {
            throw new TypeMismatchException(datum.getDataType(), bindDatum.getDataType());
        }
        params[bind.getIndex()] = datum;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.erlang.impl.TypeMismatchException

      Annotation[] notes) throws Exception {
    try {
      TypeHelper helper = getTypeHelper(forClass, notes);
      return helper.toJava(object, forClass);
    } catch (ClassCastException e) {
      throw new TypeMismatchException(forClass, object.getClass());
    }
  }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.erlang.impl.TypeMismatchException

    } catch (Exception e) {
      // type mismatch as mismatch of parameters count or parameters type
      if (e.getClass().equals(ClassCastException.class)
          || e.getClass()
              .equals(ArrayIndexOutOfBoundsException.class))
        throw new TypeMismatchException();
    }
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.