mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-12 16:27:40 +00:00
28 lines
645 B
Java
28 lines
645 B
Java
package stanhebben.zenscript;
|
|
|
|
import stanhebben.zenscript.util.ZenPosition;
|
|
|
|
/**
|
|
* Error logger. Implementations can forward errors to their own error logging
|
|
* system.
|
|
*
|
|
* @author Stan Hebben
|
|
*/
|
|
public interface IZenErrorLogger {
|
|
/**
|
|
* Called when an error is detected during compilation.
|
|
*
|
|
* @param position error position
|
|
* @param message error message
|
|
*/
|
|
public void error(ZenPosition position, String message);
|
|
|
|
/**
|
|
* Called when a warning is generated during compilation.
|
|
*
|
|
* @param position warning position
|
|
* @param message warning message
|
|
*/
|
|
public void warning(ZenPosition position, String message);
|
|
}
|