package util;

import org.apache.logging.log4j.Level;

public class ApplicationException extends Exception {
	private static final long serialVersionUID = 1L;
	
	public ApplicationException()
	{
		super();
		SuperLogger.logger.error("Empty exception");
	}
	
	public ApplicationException(String message)
	{
		super(message);
		SuperLogger.logger.log(Level.ERROR, message);
	}
	
	public ApplicationException(String message, Throwable cause)
	{
		super(message, cause);
		SuperLogger.logger.log(Level.ERROR,message, cause);
	}
	
	public ApplicationException(String message, Throwable cause, Level l)
	{
		super(message, cause);
		SuperLogger.logger.log(l, message, cause);
	}
}
