Examples of GssFunctionException


Examples of com.google.common.css.compiler.ast.GssFunctionException

  @Override
  public List<CssValueNode> getCallResultNodes(List<CssValueNode> args, ErrorManager errorManager)
      throws GssFunctionException {
    if (args.size() == 0 || args.size() > 3) {
      throw new GssFunctionException(getName() + " function take one, two or three arguments");
    }

    String functionPath = args.get(0).getValue();
    String prefix = null;
    String suffix = null;
View Full Code Here

Examples of com.google.common.css.compiler.ast.GssFunctionException

      methodType = ResourceGeneratorUtil.getMethodByPath(context.getClientBundleType(),
              pathElements, null).getReturnType();
    } catch (NotFoundException e) {
      String message = e.getMessage();
      errorManager.report(new GssError(message, location));
      throw new GssFunctionException(message, e);
    }

    if (!dataResourceType.isAssignableFrom((JClassType) methodType) &&
            !imageResourceType.isAssignableFrom((JClassType) methodType)) {
      String message = "Invalid method type for url substitution: " + methodType + ". " +
              "Only DataResource and ImageResource are supported.";
      errorManager.report(new GssError(message, location));
      throw new GssFunctionException(message);
    }
  }
View Full Code Here

Examples of com.google.gwt.thirdparty.common.css.compiler.ast.GssFunctionException

    try {
      methodType = methodByPathHelper.getReturnType(context, pathElements);
    } catch (NotFoundException e) {
      String message = e.getMessage() != null ? e.getMessage() : "Invalid path";
      errorManager.report(new GssError(message, location));
      throw new GssFunctionException(message, e);
    }

    if (!dataResourceType.isAssignableFrom((JClassType) methodType) &&
        !imageResourceType.isAssignableFrom((JClassType) methodType)) {
      String message = "Invalid method type for url substitution: " + methodType + ". " +
          "Only DataResource and ImageResource are supported.";
      errorManager.report(new GssError(message, location));
      throw new GssFunctionException(message);
    }
  }
View Full Code Here

Examples of com.google.gwt.thirdparty.common.css.compiler.ast.GssFunctionException

  @Override
  public List<CssValueNode> getCallResultNodes(List<CssValueNode> args, ErrorManager errorManager)
      throws GssFunctionException {
    if (args.size() == 0 || args.size() > 3) {
      throw new GssFunctionException(getName() + " function takes one, two or three arguments");
    }

    String functionPath = args.get(0).getValue();
    String prefix = null;
    String suffix = null;
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.