package org.hedgecode.chess.img;
+import org.hedgecode.chess.position.Position;
+
/**
- * Image working Exception.
+ *
*
* @author Dmitry Samoshin aka gotty
*/
-public class ImageException extends Exception {
-
- private String message;
-
- public ImageException(String message) {
- this.message = message;
- }
+public interface ImageBuilder {
- public String getMessage() {
- return message;
- }
+ Diagram build(Position position, String boardType, String pieceType) throws ImageException;
}