io.setl.json.exception.NoSuchValueException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canonical-json Show documentation
Show all versions of canonical-json Show documentation
An implementation of the Canonical JSON format with support for javax.json and Jackson
The newest version!
package io.setl.json.exception;
import jakarta.json.JsonException;
/**
* A JSON Structure did not contain the item required by a pointer.
*
* @author Simon Greatrix on 27/01/2020.
*/
public class NoSuchValueException extends JsonException {
/** The path that was not found. */
private final String path;
/**
* Create a new exception.
*
* @param path the path that was not found
*/
public NoSuchValueException(String path) {
super("JSON Structure did not contain item at: " + path);
this.path = path;
}
/**
* Get the path that was not found.
*
* @return the path
*/
public String getPath() {
return path;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy