001package fr.aumgn.dac2.exceptions; 002 003import fr.aumgn.dac2.DAC; 004import fr.aumgn.dac2.shape.Shape; 005import fr.aumgn.dac2.shape.worldedit.WESelector; 006 007/** 008 * Thrown when trying to select a shape with an invalid worldedit selector. 009 */ 010public class InvalidSelectorForRegion extends DACException { 011 012 private static final long serialVersionUID = 2990085737849379453L; 013 014 public InvalidSelectorForRegion(DAC dac, WESelector selector, 015 Class<? extends Shape> clazz) { 016 super(dac.getMessages().get("worldedit.selector.invalid", 017 selector.name(), clazz.getSimpleName())); 018 } 019}