net.yadaframework.exceptions.SystemException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yadaweb Show documentation
Show all versions of yadaweb Show documentation
Some useful tasks for the Yada Framework
package net.yadaframework.exceptions;
import org.slf4j.helpers.MessageFormatter;
/**
* Unchecked exception thrown when the system is in error (filesystem problems, memory exceptions, etc)
* @deprecated use YadaSystemException instead
*/
@Deprecated
public class SystemException extends RuntimeException {
private static final long serialVersionUID = -1L;
public SystemException() {
}
public SystemException(String message) {
super(message);
}
public SystemException(String format, Object... params) {
super(MessageFormatter.arrayFormat(format, params).getMessage());
}
public SystemException(Throwable cause) {
super(cause);
}
public SystemException(String message, Throwable cause) {
super(message, cause);
}
}