2014-06-09 20:33:30 +02:00
|
|
|
package stanhebben.zenscript;
|
|
|
|
|
|
|
|
|
|
import stanhebben.zenscript.util.ZenPosition;
|
|
|
|
|
|
|
|
|
|
/**
|
2014-06-10 21:12:55 +02:00
|
|
|
* Error logger. Implementations can forward errors to their own error logging
|
|
|
|
|
* system.
|
|
|
|
|
*
|
|
|
|
|
* @author Stan Hebben
|
2014-06-09 20:33:30 +02:00
|
|
|
*/
|
|
|
|
|
public interface IZenErrorLogger {
|
2014-06-10 21:12:55 +02:00
|
|
|
/**
|
|
|
|
|
* Called when an error is detected during compilation.
|
|
|
|
|
*
|
|
|
|
|
* @param position error position
|
|
|
|
|
* @param message error message
|
|
|
|
|
*/
|
2014-06-09 20:33:30 +02:00
|
|
|
public void error(ZenPosition position, String message);
|
2015-08-31 19:15:35 +02:00
|
|
|
|
2014-06-10 21:12:55 +02:00
|
|
|
/**
|
|
|
|
|
* Called when a warning is generated during compilation.
|
|
|
|
|
*
|
|
|
|
|
* @param position warning position
|
|
|
|
|
* @param message warning message
|
|
|
|
|
*/
|
2014-06-09 20:33:30 +02:00
|
|
|
public void warning(ZenPosition position, String message);
|
|
|
|
|
}
|