Examples of TypeException


Examples of org.jboss.byteman.rule.exception.TypeException

        if (expected.isPrimitive()) {
            type = Type.boxType(expected);
        } else {
            type = expected;
            if (type.isUndefined()) {
                throw new TypeException("NullLiteral.typeCheck : unable to derive type for null from context");
            }
        }
        return type;
    }
View Full Code Here

Examples of org.jboss.byteman.rule.exception.TypeException

     */
    public Type typeCheck(Type expected) throws TypeException {
        // we need to check the returnValue expression against the type of the trigger method
        type = rule.getReturnType();
        if (returnValue == null && !type.isVoid()) {
            throw new TypeException("ReturnExpression.typeCheck : return expression must supply argument when triggered from method with return type " + type.getName() + getPos());
        } else if (returnValue != null) {
            if (type.isVoid()) {
                throw new TypeException("ReturnExpression.typeCheck : return expression must not supply argument when triggered from void method" + getPos());
            }
            returnValue.typeCheck(type);
        }
        return type;
    }
View Full Code Here

Examples of org.lilyproject.repository.api.TypeException

                        log.debug("Triggering schema cache refresh for bucket: " + bucketId);
                    }
                    ZkUtil.update(zooKeeper, CACHE_INVALIDATION_PATH + "/" + bucketId, null, -1);
                }
            } catch (KeeperException e) {
                throw new TypeException("Exception while triggering cache refresh", e);
            }
        }
    }
View Full Code Here

Examples of sizzle.compiler.TypeException

   *
   * @return A SizzleType representing the type of the resulting expression
   */
  public SizzleScalar arithmetics(final SizzleType that) {
    // by default, no types are allowed in arithmetic
    throw new TypeException("incorrect type " + this + " for arithmetic with " + that);
  }
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.