blob: a70649e61aa4382e6b5ce3822b3f89e6802e3058 [file] [log] [blame]
/*
* Copyright (c) 2017 CEA.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* CEA - initial API and implementation
*/
package org.eclipse.sensinact.gateway.util.json;
/**
* Thrown when a JSON formated error is detected
*/
public class InvalidJSONException extends Exception {
/**
* Constructor
*/
public InvalidJSONException() {
super();
}
/**
* Constructor
*
* @param message the exception message
*/
public InvalidJSONException(String message) {
super(message);
}
/**
* Constructor
*
* @param cause the {@link Throwable} object which has caused the
* current exception
*/
public InvalidJSONException(Throwable cause) {
super(cause);
}
/**
* Constructor
*
* @param message the exception message
* @param cause the {@link Throwable} object which has caused the
* current exception
*/
public InvalidJSONException(String message, Throwable cause) {
super(message, cause);
}
/**
* Constructor
*
* @param message the exception message
* @param cause the {@link Throwable} object which has caused the
* current exception
* @param enableSuppression defines whether the suppression is enabled or not
* @param writableStackTrace defines whether the current exception's stack trace
* is writable or not
*/
public InvalidJSONException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause/*, enableSuppression, writableStackTrace*/);
}
}