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

net.thisptr.jackson.jq.exception.JsonQueryUserException Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package net.thisptr.jackson.jq.exception;

import com.fasterxml.jackson.databind.JsonNode;

import net.thisptr.jackson.jq.internal.misc.JsonNodeUtils;

public class JsonQueryUserException extends JsonQueryException {
	private static final long serialVersionUID = -2719442463094461632L;

	private JsonNode value;

	public JsonQueryUserException(final JsonNode value) {
		super(value.isTextual() ? value.asText() : JsonNodeUtils.toString(value));
		this.value = value;
	}

	@Override
	public JsonNode getMessageAsJsonNode() {
		return value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy