类 ParameterMappingException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.actuate.endpoint.InvalidEndpointRequestException
- org.springframework.boot.actuate.endpoint.invoke.ParameterMappingException
- 所有已实现的接口:
Serializable
public final class ParameterMappingException extends InvalidEndpointRequestException
AParameterMappingException
is thrown when a failure occurs duringoperation parameter mapping
.- 从以下版本开始:
- 2.0.0
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ParameterMappingException(OperationParameter parameter, Object value, Throwable cause)
Creates a newParameterMappingException
for a failure that occurred when trying to map the giveninput
to the giventype
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 OperationParameter
getParameter()
Return the parameter being mapped.Object
getValue()
Return the value being mapped.从类继承的方法 org.springframework.boot.actuate.endpoint.InvalidEndpointRequestException
getReason
构造器详细资料
ParameterMappingException
public ParameterMappingException(OperationParameter parameter, Object value, Throwable cause)
Creates a newParameterMappingException
for a failure that occurred when trying to map the giveninput
to the giventype
.- 参数:
parameter
- the parameter being mappingvalue
- the value being mappedcause
- the cause of the mapping failure
方法详细资料
getParameter
public OperationParameter getParameter()
Return the parameter being mapped.- 返回:
- the parameter