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

io.setl.json.exception.NotJsonException Maven / Gradle / Ivy

Go to download

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