java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.common.mapper.MapperException
- All Implemented Interfaces:
Serializable
An exception that is thrown when mapping failed to map source to target.
This may be either a problem that the mapper was not found (it is not registered) or that the mapping itself failed.
- See Also:
-
Constructor Summary
ConstructorDescriptionMapperException
(GenericType<?> source, GenericType<?> target, String detail) Failed with no underlying exception.MapperException
(GenericType<?> source, GenericType<?> target, String detail, Throwable cause) Failed with an underlying exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MapperException
Failed with no underlying exception.- Parameters:
source
- type of the sourcetarget
- type of the targetdetail
- descriptive message of what failed
-
MapperException
public MapperException(GenericType<?> source, GenericType<?> target, String detail, Throwable cause) Failed with an underlying exception.- Parameters:
source
- type of the sourcetarget
- type of the targetdetail
- descriptive message of what failedcause
- cause of this exception
-