001package cn.sticki.validator.spel.exception;
002
003import lombok.Getter;
004
005import java.util.Set;
006
007/**
008 * 不支持的类型异常
009 *
010 * @author 阿杆
011 * @version 1.0
012 * @since 2024/5/3
013 */
014@Getter
015public class SpelNotSupportedTypeException extends SpelValidException {
016
017        private final Class<?> clazz;
018
019        private final Set<Class<?>> supperType;
020
021        public SpelNotSupportedTypeException(Class<?> clazz, Set<Class<?>> supperType) {
022                super("Object class not supported, class: " + clazz.getName() + ", supperType: " + supperType.toString());
023                this.clazz = clazz;
024                this.supperType = supperType;
025        }
026
027}