![JAR search and dependency download from the Maven repository](/logo.png)
net.yadaframework.exceptions.YadaSocialException Maven / Gradle / Ivy
package net.yadaframework.exceptions;
import org.slf4j.helpers.MessageFormatter;
/**
* Error while using the social functions
*/
public class YadaSocialException extends Exception {
private static final long serialVersionUID = -1L;
public YadaSocialException() {
}
public YadaSocialException(String message) {
super(message);
}
/**
* Build the message using slf4j log format syntax
* @param format a string with {} placeholders for parameters
* @param params parameters to replace at the {} position
*/
public YadaSocialException(String format, Object... params) {
super(MessageFormatter.arrayFormat(format, params).getMessage());
}
public YadaSocialException(Throwable cause, String format, Object... params) {
super(MessageFormatter.arrayFormat(format, params).getMessage(), cause);
}
public YadaSocialException(Throwable cause) {
super(cause);
}
public YadaSocialException(String message, Throwable cause) {
super(message, cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy