Examples of TypeMismatchException


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

Examples of org.exolab.jms.selector.TypeMismatchException

        Type type = node.getReturnType();
        if (type != expected && type != Type.UNDEFINED) {
            String msg = "expecting a " + expected + " expression, found a "
                + type;
            throw new TypeMismatchException(node.getContext(), msg);
        }
    }
View Full Code Here

Examples of org.exolab.jms.selector.TypeMismatchException

        Type type = node.getReturnType();
        if (type != expected && type != Type.UNDEFINED) {
            String msg = "expecting a " + expected
                + " expression for operator " + operator + ", found a " + type;
            throw new TypeMismatchException(node.getContext(), msg);
        }
    }
View Full Code Here

Examples of org.exolab.jms.selector.TypeMismatchException

        } else if ((lhs == Type.STRING && rhs != Type.STRING)
                   || (lhs == Type.BOOLEAN && rhs != Type.BOOLEAN)
                   || (lhs == Type.NUMERIC && rhs != Type.NUMERIC)) {
            String msg = "expecting a " + lhs + " expression for operator "
                + operator + ", found a " + rhs;
            throw new TypeMismatchException(right.getContext(), msg);
        }
    }
View Full Code Here

Examples of org.exolab.jms.selector.TypeMismatchException

            String value = literal.getText();
            if (!value.equals(Identifiers.PERSISTENT)
                && !value.equals(Identifiers.NON_PERSISTENT)) {
                String msg = "Cannot compare JMSDeliveryMode with '"
                    + value + "'";
                throw new TypeMismatchException(identifier.getContext(), msg);
            }
        }
    }
View Full Code Here

Examples of org.hibernate.TypeMismatchException

      // an instance of Element...
    }
    else {
      Class idClass = persister.getIdentifierType().getReturnedClass();
      if ( idClass != null && ! idClass.isInstance( event.getEntityId() ) ) {
        throw new TypeMismatchException(
            "Provided id of the wrong type. Expected: " + idClass + ", got " + event.getEntityId().getClass()
        );
      }
    }
View Full Code Here

Examples of org.hibernate.TypeMismatchException

                return;
              }
            }
          }
        }
        throw new TypeMismatchException(
            "Provided id of the wrong type for class " + persister.getEntityName() + ". Expected: " + idClass + ", got " + event.getEntityId().getClass()
        );
      }
    }
View Full Code Here

Examples of org.hibernate.TypeMismatchException

    // resolve an expected type
    SessionFactoryImplementor sessionFactory = getSessionFactoryHelper().getFactory();
    if ( lhsType != null && rhsType != null ) {
      int lhsColumnSpan = getColumnSpan( lhsType, sessionFactory );
      if ( lhsColumnSpan != getColumnSpan( rhsType, sessionFactory ) ) {
        throw new TypeMismatchException(
            "left and right hand sides of a binary logic operator were incompatibile [" +
            lhsType.getName() + " : "+ rhsType.getName() + "]"
        );
      }
      if ( lhsColumnSpan > 1 ) {
View Full Code Here

Examples of org.hibernate.TypeMismatchException

    // resolve an expected type
    SessionFactoryImplementor sessionFactory = getSessionFactoryHelper().getFactory();
    if ( lhsType != null && rhsType != null ) {
      int lhsColumnSpan = getColumnSpan( lhsType, sessionFactory );
      if ( lhsColumnSpan != getColumnSpan( rhsType, sessionFactory ) ) {
        throw new TypeMismatchException(
            "left and right hand sides of a binary logic operator were incompatibile [" +
                lhsType.getName() + " : " + rhsType.getName() + "]"
        );
      }
      if ( lhsColumnSpan > 1 ) {
View Full Code Here

Examples of org.hibernate.TypeMismatchException

              return;
            }
          }
        }
      }
      throw new TypeMismatchException(
          "Provided id of the wrong type for class " + persister.getEntityName() + ". Expected: " + idClass
              + ", got " + event.getEntityId().getClass()
      );
    }
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.