Examples of ValueConverterException


Examples of org.eclipse.xtext.conversion.ValueConverterException

        return value.toString();
      }

      public Boolean toValue(String string, INode node) {
        if(Strings.isEmpty(string))
          throw new ValueConverterException("Could not convert empty string to boolean", node, null);
        return new Boolean(string).equals(Boolean.TRUE)
            ? Boolean.TRUE
            : Boolean.FALSE;
      }
View Full Code Here

Examples of org.eclipse.xtext.conversion.ValueConverterException

      return null;
    try {
      string = cssUnicodeToJavaUnicode(string);
      return Strings.convertFromJavaString(string.substring(1, string.length() - 1), true);
    } catch (IllegalArgumentException e) {
      throw new ValueConverterException(e.getMessage(), node, e);
    }
  }
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.