Examples of ErrorField


Examples of org.adbcj.postgresql.codec.ErrorField

    for(;;) {
      byte token = input.readByte();
      if (token == 0) {
        break;
      }
      ErrorField field = ErrorField.toErrorField(token);
      String value = input.readString(connectionState.getBackendCharset());
      if (field == null) {
        logger.warn("Unrecognized error field of type '{}' with the value '{}'", (char)token, value);
      } else {
        fields.put(field, value);
View Full Code Here

Examples of restx.exceptions.ErrorField

                List<String> fields = Lists.newArrayList();
                for (Element element : typeElement.getEnclosedElements()) {
                    if (element.getKind() == ElementKind.ENUM_CONSTANT) {
                        String field = element.getSimpleName().toString();
                        ErrorField errorField = element.getAnnotation(ErrorField.class);
                        String description = errorField == null ? field.replace("_", " ").toLowerCase(Locale.ENGLISH)
                                : errorField.value();
                        fields.add(String.format(".put(\"%s\", new ErrorDescriptor.ErrorFieldDescriptor(\"%s\", \"%s\"))",
                                field, field, description));
                    }
                }
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.