Class 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
- All Implemented Interfaces:
Serializable
public final class ParameterMappingException extends InvalidEndpointRequestException
AParameterMappingException
is thrown when a failure occurs duringoperation parameter mapping
.- Since:
- 2.0.0
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ParameterMappingException(OperationParameter parameter, Object value, Throwable cause)
Creates a newParameterMappingException
for a failure that occurred when trying to map the giveninput
to the giventype
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationParameter
getParameter()
Return the parameter being mapped.Object
getValue()
Return the value being mapped.Methods inherited from class org.springframework.boot.actuate.endpoint.InvalidEndpointRequestException
getReason
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
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
.- Parameters:
parameter
- the parameter being mappingvalue
- the value being mappedcause
- the cause of the mapping failure
Method Detail
getParameter
public OperationParameter getParameter()
Return the parameter being mapped.- Returns:
- the parameter