io.setl.json.exception.NotJsonException 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;
/**
* An exception thrown when an attempt is made to use an object that is not directly representable as JSON.
*
* @author Simon Greatrix on 10/08/2020.
*/
public class NotJsonException extends IllegalArgumentException {
/**
* New instance.
*
* @param value the value that cannot be represented as JSON
*/
public NotJsonException(Object value) {
super("Cannot represent instances of " + value.getClass() + " as JSON directly");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy