All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cc.shacocloud.mirage.web.exception.MethodArgumentConversionNotSupportedException Maven / Gradle / Ivy

package cc.shacocloud.mirage.web.exception;

import org.springframework.beans.ConversionNotSupportedException;
import org.springframework.core.MethodParameter;
import org.jetbrains.annotations.Nullable;

/**
 * 解析方法参数时引发 {@link ConversionNotSupportedException}。
 * 

* 提供对目标{@link org.springframework.core.MethodParameter}的访. */ @SuppressWarnings("serial") public class MethodArgumentConversionNotSupportedException extends ConversionNotSupportedException { private final String name; private final MethodParameter parameter; public MethodArgumentConversionNotSupportedException(@Nullable Object value, @Nullable Class requiredType, String name, MethodParameter param, Throwable cause) { super(value, requiredType, cause); this.name = name; this.parameter = param; } /** * 返回方法参数的名称。 */ public String getName() { return this.name; } /** * 返回目标方法参数。 */ public MethodParameter getParameter() { return this.parameter; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy