All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tiler.internal.RedisException Maven / Gradle / Ivy

There is a newer version: 0.1.28
Show newest version
package io.tiler.internal;

import org.vertx.java.core.json.JsonObject;

public class RedisException extends Exception {
  public RedisException(JsonObject redisReply) {
    super(createMessage(redisReply));
  }

  private static String createMessage(JsonObject redisReply) {
    String message = redisReply.getString("status");

    if (redisReply.containsField("message")) {
      message += ": " + redisReply.getString("message");
    }
    return message;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy