// Path: src/com/floreysoft/jmte/ErrorHandler.java
// public interface ErrorHandler {
// 
// 	/**
// 	 * Handles an error while interpreting a template in an appropriate way.
// 	 * This might contain logging the error or even throwing an exception.
// 	 * 
// 	 * @param messageKey
// 	 *            key for the error message
// 	 * @param token
// 	 *            the token this error occurred on
// 	 * @param parameters
// 	 *            additional parameters to be filled into message or
// 	 *            <code>null</<code> if you do not have additional parameters
// 	 */
// 	public void error(String messageKey, Token token,
// 			Map<String, Object> parameters) throws ParseException;
// 
// 	/**
// 	 * Handles an error while interpreting a template in an appropriate way.
// 	 * This might contain logging the error or even throwing an exception.
// 	 * 
// 	 * @param messageKey
// 	 *            key for the error message
// 	 * @param token
// 	 *            the token this error occurred on
// 	 */
// 	public void error(String messageKey, Token token) throws ParseException;
// 
// }
// 
// Path: src/com/floreysoft/jmte/token/Token.java
// public interface Token extends Cloneable {
// 
// 	/**
// 	 * Returns the text of the token.
// 	 * 
// 	 * @return the text
// 	 */
// 	public String getText();
// 
// 	public int getLine();
// 
// 	public int getColumn();
// 
// 	public String getSourceName();
// 	
// 	public Object evaluate(TemplateContext context);
// 	
// 	public int getTokenIndex();
// 	
// 	public String emit();
// }


import java.util.Locale;
import java.util.logging.Logger;
import com.floreysoft.jmte.ErrorHandler;
import com.floreysoft.jmte.token.Token;

package com.floreysoft.jmte.message;



public abstract class AbstractErrorHandler implements ErrorHandler {
	protected final Logger logger = Logger
			.getLogger(getClass().getName());

	protected Locale locale = new Locale("en");


// Path: src/com/floreysoft/jmte/ErrorHandler.java
// public interface ErrorHandler {
// 
// 	/**
// 	 * Handles an error while interpreting a template in an appropriate way.
// 	 * This might contain logging the error or even throwing an exception.
// 	 * 
// 	 * @param messageKey
// 	 *            key for the error message
// 	 * @param token
// 	 *            the token this error occurred on
// 	 * @param parameters
// 	 *            additional parameters to be filled into message or
// 	 *            <code>null</<code> if you do not have additional parameters
// 	 */
// 	public void error(String messageKey, Token token,
// 			Map<String, Object> parameters) throws ParseException;
// 
// 	/**
// 	 * Handles an error while interpreting a template in an appropriate way.
// 	 * This might contain logging the error or even throwing an exception.
// 	 * 
// 	 * @param messageKey
// 	 *            key for the error message
// 	 * @param token
// 	 *            the token this error occurred on
// 	 */
// 	public void error(String messageKey, Token token) throws ParseException;
// 
// }
// 
// Path: src/com/floreysoft/jmte/token/Token.java
// public interface Token extends Cloneable {
// 
// 	/**
// 	 * Returns the text of the token.
// 	 * 
// 	 * @return the text
// 	 */
// 	public String getText();
// 
// 	public int getLine();
// 
// 	public int getColumn();
// 
// 	public String getSourceName();
// 	
// 	public Object evaluate(TemplateContext context);
// 	
// 	public int getTokenIndex();
// 	
// 	public String emit();
// }


// Path: src/com/floreysoft/jmte/message/AbstractErrorHandler.java
import java.util.Locale;
import java.util.logging.Logger;
import com.floreysoft.jmte.ErrorHandler;
import com.floreysoft.jmte.token.Token;

package com.floreysoft.jmte.message;



public abstract class AbstractErrorHandler implements ErrorHandler {
	protected final Logger logger = Logger
			.getLogger(getClass().getName());

	protected Locale locale = new Locale("en");


	@Override
