// Path: src/java/main/br/ufpe/cin/groundhog/GroundhogException.java
// public class GroundhogException extends RuntimeException {
// 	private static final long serialVersionUID = -3563928567447310893L;
// 
// 	public GroundhogException() {
// 		super();
// 	}
// 
// 	public GroundhogException(String msg) {
// 		super(msg);
// 	}
// 
// 	public GroundhogException(Throwable cause) {
// 		super(cause);
// 	}
// 
// 	public GroundhogException(String msg, Throwable cause) {
// 		super(msg, cause);
// 	}
// }


import br.ufpe.cin.groundhog.GroundhogException;
package br.ufpe.cin.groundhog.parser.java.formater;


/**
 * Factory class that creates a specific {@link Format}
 * 
 * @author ghlp
 * @since 0.0.1
 */
public class FormaterFactory {

	/**
	 * Factory method to create a {@link Formater} object
	 * @param formater
	 * @return
	 */
	public static Formater get(Class<? extends Formater> formater) {
		try {
			return formater.newInstance();
		} catch (Exception e) {
			String msg = String.format("I did not reconginze this output format (%s) :( I can only format in CSV or JSON", formater.getSimpleName());
// Path: src/java/main/br/ufpe/cin/groundhog/GroundhogException.java
// public class GroundhogException extends RuntimeException {
// 	private static final long serialVersionUID = -3563928567447310893L;
// 
// 	public GroundhogException() {
// 		super();
// 	}
// 
// 	public GroundhogException(String msg) {
// 		super(msg);
// 	}
// 
// 	public GroundhogException(Throwable cause) {
// 		super(cause);
// 	}
// 
// 	public GroundhogException(String msg, Throwable cause) {
// 		super(msg, cause);
// 	}
// }


// Path: src/java/main/br/ufpe/cin/groundhog/parser/java/formater/FormaterFactory.java
import br.ufpe.cin.groundhog.GroundhogException;

package br.ufpe.cin.groundhog.parser.java.formater;


/**
 * Factory class that creates a specific {@link Format}
 * 
 * @author ghlp
 * @since 0.0.1
 */
public class FormaterFactory {

	/**
	 * Factory method to create a {@link Formater} object
	 * @param formater
	 * @return
	 */
	public static Formater get(Class<? extends Formater> formater) {
		try {
			return formater.newInstance();
		} catch (Exception e) {
			String msg = String.format("I did not reconginze this output format (%s) :( I can only format in CSV or JSON", formater.getSimpleName());
			throw new GroundhogException(msg, e);