001package fr.aumgn.dac2.exceptions;
002
003import fr.aumgn.dac2.DAC;
004import fr.aumgn.dac2.shape.Shape;
005
006/**
007 * Thrown when trying to create a selector from a shape which is not supported.
008 * Can be because the shape does not have a corresponding region or
009 * because the specified selector selector doesn't support this shape. 
010 */
011public class WESelectionNotSupported extends DACException {
012
013    private static final long serialVersionUID = 2964152704608363073L;
014
015    public WESelectionNotSupported(DAC dac, Class<? extends Shape> clazz) {
016        super(dac.getMessages().get(
017                "worldedit.selection.unsupported", clazz.getSimpleName()));
018    }
019}